Add explicit

This commit is contained in:
Jonas Kvinge
2020-04-07 16:49:15 +02:00
parent 3efc496c41
commit 21b2193cd0
199 changed files with 337 additions and 342 deletions

View File

@@ -39,7 +39,7 @@ class FreeSpaceBar : public QWidget {
Q_OBJECT
public:
FreeSpaceBar(QWidget *parent = nullptr);
explicit FreeSpaceBar(QWidget *parent = nullptr);
static const int kBarHeight;
static const int kBarBorderRadius;
@@ -66,12 +66,12 @@ class FreeSpaceBar : public QWidget {
QSize sizeHint() const;
protected:
protected:
void paintEvent(QPaintEvent*);
private:
private:
struct Label {
Label(const QString &t, const QColor &c) : text(t), color(c) {}
explicit Label(const QString &t, const QColor &c) : text(t), color(c) {}
QString text;
QColor color;
@@ -82,7 +82,7 @@ private:
void DrawBar(QPainter *p, const QRect &r);
void DrawText(QPainter *p, const QRect &r);
private:
private:
qint64 free_;
qint64 additional_;
qint64 total_;