Commit f62f3c4b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Warning--

parent 27aef2a1
......@@ -58,7 +58,7 @@ public:
/**
* Creates new Activities object
*/
Activities(QObject *parent = Q_NULLPTR);
explicit Activities(QObject *parent = Q_NULLPTR);
/**
* Destroys this interface
......
......@@ -27,7 +27,7 @@ class Config : public Module {
Q_OBJECT
public:
Config(QObject *parent = Q_NULLPTR);
explicit Config(QObject *parent = Q_NULLPTR);
virtual ~Config();
Q_SIGNALS:
......
......@@ -42,7 +42,7 @@ class Features : public Module {
Q_CLASSINFO("D-Bus Interface", "org.kde.ActivityManager.Features")
public:
Features(QObject *parent = Q_NULLPTR);
explicit Features(QObject *parent = Q_NULLPTR);
virtual ~Features();
public Q_SLOTS:
......
......@@ -48,7 +48,7 @@ class KACTIVITYMANAGERD_PLUGIN_EXPORT Plugin : public Module {
Q_OBJECT
public:
Plugin(QObject *parent);
explicit Plugin(QObject *parent);
virtual ~Plugin();
/**
......
......@@ -284,7 +284,7 @@ Resources::~Resources()
{
}
void Resources::RegisterResourceEvent(QString application, uint _windowId,
void Resources::RegisterResourceEvent(const QString &application, uint _windowId,
const QString &uri, uint event)
{
if (event > Event::LastEventType
......
......@@ -54,7 +54,7 @@ public Q_SLOTS:
* @param uri URI of the resource on which the event happened
* @param event type of the event
*/
void RegisterResourceEvent(QString application, uint windowId,
void RegisterResourceEvent(const QString &application, uint windowId,
const QString &uri, uint event);
/**
......
......@@ -40,7 +40,7 @@ public:
FailedToStop = 2
};
KSMServer(QObject *parent = Q_NULLPTR);
explicit KSMServer(QObject *parent = Q_NULLPTR);
virtual ~KSMServer();
public Q_SLOTS:
......
......@@ -30,7 +30,7 @@ class TemplatesPlugin : public Plugin {
public:
TemplatesPlugin(QObject *parent = Q_NULLPTR,
const QVariantList &args = QVariantList());
virtual ~TemplatesPlugin();
~TemplatesPlugin() Q_DECL_OVERRIDE;
bool init(QHash<QString, QObject *> &modules) Q_DECL_OVERRIDE;
......
......@@ -29,8 +29,8 @@ class EventSpyPlugin : public Plugin {
Q_OBJECT
public:
EventSpyPlugin(QObject *parent = Q_NULLPTR, const QVariantList &args = QVariantList());
virtual ~EventSpyPlugin();
explicit EventSpyPlugin(QObject *parent = Q_NULLPTR, const QVariantList &args = QVariantList());
~EventSpyPlugin() Q_DECL_OVERRIDE;
bool init(QHash<QString, QObject *> &modules) Q_DECL_OVERRIDE;
......
......@@ -30,8 +30,8 @@ class GlobalShortcutsPlugin : public Plugin {
// Q_PLUGIN_METADATA(IID "org.kde.ActivityManager.plugins.globalshortcutsplugin")
public:
GlobalShortcutsPlugin(QObject *parent = Q_NULLPTR, const QVariantList &args = QVariantList());
virtual ~GlobalShortcutsPlugin();
explicit GlobalShortcutsPlugin(QObject *parent = Q_NULLPTR, const QVariantList &args = QVariantList());
~GlobalShortcutsPlugin() Q_DECL_OVERRIDE;
bool init(QHash<QString, QObject *> &modules) Q_DECL_OVERRIDE;
......
......@@ -25,8 +25,8 @@ class RunApplicationPlugin : public Plugin {
// Q_PLUGIN_METADATA(IID "org.kde.ActivityManager.plugins.virtualdesktopswitch")
public:
RunApplicationPlugin(QObject *parent = Q_NULLPTR, const QVariantList &args = QVariantList());
virtual ~RunApplicationPlugin();
explicit RunApplicationPlugin(QObject *parent = Q_NULLPTR, const QVariantList &args = QVariantList());
~RunApplicationPlugin() Q_DECL_OVERRIDE;
bool init(QHash<QString, QObject *> &modules) Q_DECL_OVERRIDE;
......
......@@ -27,7 +27,7 @@ class SlcPlugin : public Plugin {
public:
explicit SlcPlugin(QObject *parent = Q_NULLPTR, const QVariantList &args = QVariantList());
~SlcPlugin();
~SlcPlugin() Q_DECL_OVERRIDE;
bool init(QHash<QString, QObject *> &modules) Q_DECL_OVERRIDE;
......
......@@ -42,7 +42,7 @@ class ResourceLinking : public QObject {
Q_CLASSINFO("D-Bus Interface", "org.kde.ActivityManager.Resources.Linking")
public:
ResourceLinking(QObject *parent);
explicit ResourceLinking(QObject *parent);
void init();
......
......@@ -25,8 +25,8 @@ class VirtualDesktopSwitchPlugin : public Plugin {
// Q_PLUGIN_METADATA(IID "org.kde.ActivityManager.plugins.virtualdesktopswitch")
public:
VirtualDesktopSwitchPlugin(QObject *parent = Q_NULLPTR, const QVariantList &args = QVariantList());
virtual ~VirtualDesktopSwitchPlugin();
explicit VirtualDesktopSwitchPlugin(QObject *parent = Q_NULLPTR, const QVariantList &args = QVariantList());
~VirtualDesktopSwitchPlugin() Q_DECL_OVERRIDE;
bool init(QHash<QString, QObject *> &modules) Q_DECL_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