Commit 7ee24d50 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use explicit

parent 045ad712
......@@ -33,7 +33,7 @@ public:
ComicHighlightRole = Qt::UserRole+4
};
ActiveComicModel(QObject *parent = nullptr);
explicit ActiveComicModel(QObject *parent = nullptr);
QHash<int, QByteArray> roleNames() const override;
......
......@@ -40,7 +40,7 @@ class SavingDir
* @param config the config that should be used to retrieve
* the saving directory and to store it to in case of changes
*/
SavingDir(const KConfigGroup &config);
explicit SavingDir(const KConfigGroup &config);
~SavingDir();
......
......@@ -31,7 +31,7 @@ class SavingDir;
class ComicSaver
{
public:
ComicSaver(SavingDir *savingDir);
explicit ComicSaver(SavingDir *savingDir);
/**
* Asks the user for a destination to save the specified
......
......@@ -44,7 +44,7 @@ class DiskQuota : public QObject
Q_PROPERTY(QuotaListModel* model READ model CONSTANT)
public:
DiskQuota(QObject *parent = nullptr);
explicit DiskQuota(QObject *parent = nullptr);
public:
/**
......
......@@ -31,7 +31,7 @@ class QuotaListModel : public QAbstractListModel
Q_OBJECT
public:
QuotaListModel(QObject *parent = nullptr);
explicit QuotaListModel(QObject *parent = nullptr);
public: // QAbstractListModel overrides
/**
......
......@@ -44,7 +44,7 @@ class MediaFrame : public QObject
};
Q_ENUM(AddOption)
MediaFrame(QObject *parent = nullptr);
explicit MediaFrame(QObject *parent = nullptr);
~MediaFrame() override;
int count() const;
......
......@@ -34,7 +34,7 @@ class ContentTracker : public QObject
Q_PROPERTY(QString title READ title NOTIFY changed)
public:
ContentTracker(QObject *parent = nullptr);
explicit ContentTracker(QObject *parent = nullptr);
~ContentTracker() override;
QString uri() const;
......
......@@ -27,7 +27,7 @@ class ShowDesktop : public QObject
Q_PROPERTY(bool showingDesktop READ showingDesktop WRITE setShowingDesktop NOTIFY showingDesktopChanged)
public:
ShowDesktop(QObject *parent = nullptr);
explicit ShowDesktop(QObject *parent = nullptr);
~ShowDesktop() override;
bool showingDesktop() const;
......
......@@ -27,7 +27,7 @@ class Timer : public QObject
Q_OBJECT
public:
Timer(QObject *parent = nullptr);
explicit Timer(QObject *parent = nullptr);
Q_INVOKABLE void runCommand(const QString &command);
};
......
......@@ -131,7 +131,7 @@ class StaticDateWrapper : public QObject
};
Q_ENUM(DateType)
StaticDateWrapper(QObject *parent = nullptr);
explicit StaticDateWrapper(QObject *parent = nullptr);
public Q_SLOTS:
QObject* currentDate();
......@@ -197,7 +197,7 @@ class ComicProviderWrapper : public QObject
};
Q_ENUM(RedirectedUrlType)
ComicProviderWrapper(ComicProviderKross *parent);
explicit ComicProviderWrapper(ComicProviderKross *parent);
~ComicProviderWrapper() override;
int apiVersion() const { return 4600; }
......
......@@ -82,7 +82,7 @@ class LoadImageThread : public QObject, public QRunnable
Q_OBJECT
public:
LoadImageThread(const QString &filePath);
explicit LoadImageThread(const QString &filePath);
void run() override;
Q_SIGNALS:
......
......@@ -42,7 +42,7 @@ class PLASMA_POTD_EXPORT PotdProvider : public QObject
*
* @param parent The parent object.
*/
PotdProvider( QObject *parent, const QVariantList &args = QVariantList() );
explicit PotdProvider(QObject *parent, const QVariantList &args = QVariantList());
/**
* Destroys the PoTD provider.
......
......@@ -21,7 +21,7 @@ class DictionaryMatchEngine : public QObject
Q_OBJECT
public:
DictionaryMatchEngine(Plasma::DataEngine *dictionaryEngine, QObject *parent = nullptr);
explicit DictionaryMatchEngine(Plasma::DataEngine *dictionaryEngine, QObject *parent = nullptr);
QString lookupWord(const QString &word);
private:
......
......@@ -16,7 +16,7 @@ class DictionaryRunnerConfig : public KCModule
Q_OBJECT
public:
DictionaryRunnerConfig(QWidget* parent = nullptr, const QVariantList& args = QVariantList());
explicit DictionaryRunnerConfig(QWidget* parent = nullptr, const QVariantList& args = QVariantList());
public Q_SLOTS:
void save() override;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment