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

Use explicit

parent 2608ccce
......@@ -31,7 +31,7 @@ class TimezonesI18n : public QObject
Q_OBJECT
public:
TimezonesI18n(QObject *parent = nullptr);
explicit TimezonesI18n(QObject *parent = nullptr);
Q_INVOKABLE QString i18nCity(const QString &city);
Q_INVOKABLE QString i18nContinents(const QString &continent);
Q_INVOKABLE QString i18nCountry(QLocale::Country country);
......
......@@ -40,7 +40,7 @@ class AppmenuDBus : public QObject, protected QDBusContext
Q_OBJECT
public:
AppmenuDBus(QObject*);
explicit AppmenuDBus(QObject*);
~AppmenuDBus() override;
bool connectToBus(const QString& service = QString(), const QString& path = QString());
......
......@@ -44,7 +44,7 @@ class MenuImporter : public QObject, protected QDBusContext
Q_OBJECT
public:
MenuImporter(QObject*);
explicit MenuImporter(QObject*);
~MenuImporter() override;
bool connectToBus();
......
......@@ -33,7 +33,7 @@ class VerticalMenu : public QMenu
{
Q_OBJECT
public:
VerticalMenu(QWidget * parent = nullptr);
explicit VerticalMenu(QWidget * parent = nullptr);
~VerticalMenu() override;
QString serviceName() const { return m_serviceName; }
......
......@@ -44,7 +44,7 @@ class KeyboardLayout : public QObject
NOTIFY layoutsChanged)
public:
KeyboardLayout(QObject *parent = nullptr);
explicit KeyboardLayout(QObject *parent = nullptr);
~KeyboardLayout() override;
QString currentLayout() const;
......
......@@ -53,7 +53,7 @@ class InteractiveConsole : public QDialog
Q_OBJECT
public:
InteractiveConsole(QWidget *parent = nullptr);
explicit InteractiveConsole(QWidget *parent = nullptr);
~InteractiveConsole() override;
enum ConsoleMode {
......
......@@ -94,7 +94,7 @@ public:
FilterDataRole = Qt::UserRole+2,
SeparatorRole = Qt::UserRole+3
};
DefaultFilterModel(QObject *parent = nullptr);
explicit DefaultFilterModel(QObject *parent = nullptr);
QHash<int, QByteArray> roleNames() const override;
......@@ -131,7 +131,7 @@ class DefaultItemFilterProxyModel : public QSortFilterProxyModel
Q_PROPERTY(int count READ count NOTIFY countChanged)
public:
DefaultItemFilterProxyModel(QObject *parent = nullptr);
explicit DefaultItemFilterProxyModel(QObject *parent = nullptr);
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override;
bool lessThan(const QModelIndex &left, const QModelIndex &right) const override;
......
......@@ -35,7 +35,7 @@ class OpenWidgetAssistant : public KAssistantDialog
Q_OBJECT
public:
OpenWidgetAssistant(QWidget *parent);
explicit OpenWidgetAssistant(QWidget *parent);
protected Q_SLOTS:
void finished();
......
......@@ -32,7 +32,7 @@ class PlasmaAppletItemModel;
class PlasmaAppletItem : public KCategorizedItemsViewModels::AbstractItem
{
public:
PlasmaAppletItem(const KPluginInfo& info);
explicit PlasmaAppletItem(const KPluginInfo& info);
QString pluginName() const;
QString name() const override;
......
......@@ -44,7 +44,7 @@ class WidgetAction : public QAction
Q_PROPERTY(bool separator READ isSeparator WRITE setSeparator NOTIFY separatorChanged)
public:
WidgetAction(QObject *parent = nullptr);
explicit WidgetAction(QObject *parent = nullptr);
WidgetAction(const QIcon &icon, const QString &text, QObject *parent);
Q_SIGNALS:
......
......@@ -69,7 +69,7 @@ public:
Stopped = 2
};
JobView(QObject *parent = nullptr);
explicit JobView(QObject *parent = nullptr);
~JobView() override;
uint jobId() const;
......
......@@ -35,7 +35,7 @@ class AppService : public Plasma::Service
Q_OBJECT
public:
AppService(AppSource *source);
explicit AppService(AppSource *source);
~AppService() override;
protected:
......
......@@ -43,7 +43,7 @@ class KSolidNotify : public QObject
Q_OBJECT
public:
KSolidNotify(QObject *parent);
explicit KSolidNotify(QObject *parent);
signals:
void notify(Solid::ErrorType solidError, const QString& error, const QString& errorDetails, const QString &udi);
......
......@@ -36,7 +36,7 @@ public:
enum UpdateTrigger { ForcedUpdate = 0, SourceEvent = 1, NetworkConnected = 2 };
Q_DECLARE_FLAGS(UpdateTriggers, UpdateTrigger)
GeolocationProvider(QObject *parent = nullptr, const QVariantList &args = QVariantList());
explicit GeolocationProvider(QObject *parent = nullptr, const QVariantList &args = QVariantList());
void init(Plasma::DataEngine::Data *data, EntryAccuracy *accuracies);
UpdateTriggers updateTriggers() const;
......
......@@ -29,7 +29,7 @@ class Gpsd : public QThread
{
Q_OBJECT
public:
Gpsd(gps_data_t* gpsdata);
explicit Gpsd(gps_data_t* gpsdata);
~Gpsd() override;
void update();
......
......@@ -33,7 +33,7 @@ class MultiplexedService : public Plasma::Service
Q_OBJECT
public:
MultiplexedService(Multiplexer *multiplexer, QObject *parent = nullptr);
explicit MultiplexedService(Multiplexer *multiplexer, QObject *parent = nullptr);
protected:
Plasma::ServiceJob *createJob(const QString &operation,
......
......@@ -28,7 +28,7 @@ class PackagekitService : public Plasma::Service
{
Q_OBJECT
public:
PackagekitService(QObject* parent = nullptr);
explicit PackagekitService(QObject* parent = nullptr);
Plasma::ServiceJob* createJob(const QString& operation, QMap< QString, QVariant >& parameters) override;
};
......
......@@ -32,7 +32,7 @@ class PowerManagementService : public Plasma::Service
Q_OBJECT
public:
PowerManagementService(QObject *parent = nullptr);
explicit PowerManagementService(QObject *parent = nullptr);
ServiceJob *createJob(const QString &operation, QMap<QString, QVariant> &parameters) override;
};
......
......@@ -25,7 +25,7 @@
class SharePackage : public KPackage::PackageStructure
{
public:
SharePackage(QObject *parent = nullptr, QVariantList args = QVariantList());
explicit SharePackage(QObject *parent = nullptr, QVariantList args = QVariantList());
void initPackage(KPackage::Package *package) override;
};
......
......@@ -35,7 +35,7 @@ class ShareProvider : public QObject
Q_OBJECT
public:
ShareProvider(KJSEmbed::Engine* engine, QObject *parent = nullptr);
explicit ShareProvider(KJSEmbed::Engine* engine, QObject *parent = nullptr);
QString method() const;
void setMethod(const QString &method);
......
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