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

Use explicit

parent 0cb294d3
......@@ -29,7 +29,7 @@ class BacklightHelper: public QObject
{
Q_OBJECT
public:
BacklightHelper(QObject *parent = nullptr);
explicit BacklightHelper(QObject *parent = nullptr);
public Q_SLOTS:
ActionReply brightness(const QVariantMap &args);
......
......@@ -36,7 +36,7 @@ namespace UdevQt
class DevicePrivate
{
public:
DevicePrivate(struct udev_device *udev_, bool ref = true);
explicit DevicePrivate(struct udev_device *udev_, bool ref = true);
~DevicePrivate();
DevicePrivate &operator=(const DevicePrivate& other);
......@@ -51,7 +51,7 @@ class ClientPrivate
public:
enum ListenToWhat { ListenToList, ListenToNone };
ClientPrivate(Client *q_);
explicit ClientPrivate(Client *q_);
~ClientPrivate();
void init(const QStringList &subsystemList, ListenToWhat what);
......
......@@ -40,8 +40,8 @@ class Client : public QObject
Q_PROPERTY(QStringList watchedSubsystems READ watchedSubsystems WRITE setWatchedSubsystems)
public:
Client(QObject *parent = 0);
Client(const QStringList &subsystemList, QObject *parent = 0);
explicit Client(QObject *parent = 0);
explicit Client(const QStringList &subsystemList, QObject *parent = 0);
~Client();
QStringList watchedSubsystems() const;
......
......@@ -60,7 +60,7 @@ class Device
Device ancestorOfType(const QString &subsys, const QString &devtype) const;
private:
Device(DevicePrivate *devPrivate);
explicit Device(DevicePrivate *devPrivate);
friend class Client;
friend class ClientPrivate;
......
......@@ -68,7 +68,7 @@ public:
/**
* Default constructor
*/
ActionConfig(QObject *parent);
explicit ActionConfig(QObject *parent);
/**
* Default destructor
*/
......
......@@ -38,7 +38,7 @@ class FdoConnector : public QObject, protected QDBusContext
Q_CLASSINFO("D-Bus Interface", "org.freedesktop.PowerManagement.Inhibit")
public:
FdoConnector(PowerDevil::Core *parent);
explicit FdoConnector(PowerDevil::Core *parent);
bool CanHibernate();
bool CanSuspend();
......
......@@ -32,7 +32,7 @@ class Q_DECL_EXPORT ActionConfigWidget : public QWidget
{
Q_OBJECT
public:
ActionConfigWidget(QWidget* parent);
explicit ActionConfigWidget(QWidget* parent);
~ActionConfigWidget();
void addWidgets(QList<QPair <QString, QWidget*> > configMap);
......
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