Add more explicit

This commit is contained in:
Montel Laurent 2017-12-13 07:52:10 +01:00
parent 7f0c023d3f
commit d14d50a668
11 changed files with 11 additions and 11 deletions

View File

@ -87,7 +87,7 @@ class ColorScope : public QQuickItem
public:
/// @cond INTERNAL_DOCS
explicit ColorScope(QQuickItem *parent = nullptr, QObject *parentObject = 0);
explicit ColorScope(QQuickItem *parent = nullptr, QObject *parentObject = nullptr);
~ColorScope();
void setColorGroup(Plasma::Theme::ColorGroup group);

View File

@ -90,7 +90,7 @@ class SortFilterModel : public QSortFilterProxyModel
friend class DataModel;
public:
SortFilterModel(QObject *parent = nullptr);
explicit SortFilterModel(QObject *parent = nullptr);
~SortFilterModel();
void setModel(QAbstractItemModel *source);

View File

@ -56,7 +56,7 @@ public:
typedef QMap<QString, QVariant> Data;
DataSource(QObject *parent = nullptr);
explicit DataSource(QObject *parent = nullptr);
void classBegin() Q_DECL_OVERRIDE;
void componentComplete() Q_DECL_OVERRIDE;

View File

@ -68,7 +68,7 @@ class SvgItem : public QQuickItem
public:
/// @cond INTERNAL_DOCS
SvgItem(QQuickItem *parent = nullptr);
explicit SvgItem(QQuickItem *parent = nullptr);
~SvgItem();
void setElementId(const QString &elementID);

View File

@ -48,7 +48,7 @@ class FallbackComponent : public QObject
Q_PROPERTY(QStringList candidates READ candidates WRITE setCandidates NOTIFY candidatesChanged)
public:
FallbackComponent(QObject *parent = nullptr);
explicit FallbackComponent(QObject *parent = nullptr);
/**
* This method must be called after the the basePath and the candidates property

View File

@ -34,7 +34,7 @@ class EffectWatcher: public QObject, public QAbstractNativeEventFilter
Q_OBJECT
public:
EffectWatcher(const QString &property, QObject *parent = nullptr);
explicit EffectWatcher(const QString &property, QObject *parent = nullptr);
protected:
bool isEffectActive() const;

View File

@ -33,7 +33,7 @@ class StorageThread : public QThread
{
Q_OBJECT
public:
StorageThread(QObject *parent = nullptr);
explicit StorageThread(QObject *parent = nullptr);
~StorageThread();
void run() Q_DECL_OVERRIDE;

View File

@ -37,7 +37,7 @@ class SharedSvgRenderer : public QSvgRenderer, public QSharedData
public:
typedef QExplicitlySharedDataPointer<SharedSvgRenderer> Ptr;
SharedSvgRenderer(QObject *parent = nullptr);
explicit SharedSvgRenderer(QObject *parent = nullptr);
SharedSvgRenderer(
const QString &filename,
const QString &styleSheet,

View File

@ -63,7 +63,7 @@ class ThemePrivate : public QObject
Q_OBJECT
public:
ThemePrivate(QObject *parent = nullptr);
explicit ThemePrivate(QObject *parent = nullptr);
~ThemePrivate();
KConfigGroup &config();

View File

@ -60,7 +60,7 @@ class PLASMA_EXPORT TimeTracker : QObject
{
Q_OBJECT
public:
TimeTracker(QObject* applet);
explicit TimeTracker(QObject* applet);
virtual ~TimeTracker();
private Q_SLOTS:

View File

@ -51,7 +51,7 @@ class WallpaperInterface : public QQuickItem
Q_PROPERTY(KDeclarative::ConfigPropertyMap *configuration READ configuration NOTIFY configurationChanged)
public:
WallpaperInterface(ContainmentInterface *parent = nullptr);
explicit WallpaperInterface(ContainmentInterface *parent = nullptr);
~WallpaperInterface();
/**