Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Use override

parent 0909007a
......@@ -63,7 +63,7 @@ public:
/**
* Destroys this interface
*/
virtual ~Activities();
~Activities() override;
// workspace activities control
public Q_SLOTS:
......
......@@ -43,7 +43,7 @@ class Activities::Private : public QObject {
public:
Private(Activities *parent);
~Private();
~Private() override;
// Loads the last activity
// the user has used
......
......@@ -80,7 +80,7 @@ T *runInQThread()
{
}
void run() Q_DECL_OVERRIDE
void run() override
{
std::unique_ptr<T> o(object);
exec();
......
......@@ -43,7 +43,7 @@ class Application : public QApplication {
public:
Application(int &argc, char **argv);
virtual ~Application();
~Application() override;
virtual int newInstance();
......
......@@ -28,7 +28,7 @@ class Config : public Module {
public:
explicit Config(QObject *parent = nullptr);
virtual ~Config();
~Config() override;
Q_SIGNALS:
void pluginConfigChanged();
......
......@@ -43,7 +43,7 @@ class Features : public Module {
public:
explicit Features(QObject *parent = nullptr);
virtual ~Features();
~Features() override;
public Q_SLOTS:
/**
......
......@@ -41,7 +41,7 @@ class KACTIVITYMANAGERD_PLUGIN_EXPORT Module : public QObject {
public:
explicit Module(const QString &name, QObject *parent = nullptr);
virtual ~Module();
~Module() override;
static QObject *get(const QString &name);
static QHash<QString, QObject *> &get();
......
......@@ -49,7 +49,7 @@ class KACTIVITYMANAGERD_PLUGIN_EXPORT Plugin : public Module {
public:
explicit Plugin(QObject *parent);
virtual ~Plugin();
~Plugin() override;
/**
* Initializes the plugin.
......
......@@ -42,7 +42,7 @@ class Resources : public Module {
public:
explicit Resources(QObject *parent = nullptr);
virtual ~Resources();
~Resources() override;
public Q_SLOTS:
/**
......
......@@ -38,9 +38,9 @@ class Resources::Private : public QThread {
public:
Private(Resources *parent);
~Private();
~Private() override;
void run() Q_DECL_OVERRIDE;
void run() override;
// Inserts the event directly into the queue
void insertEvent(const Event &newEvent);
......
......@@ -41,7 +41,7 @@ public:
};
explicit KSMServer(QObject *parent = nullptr);
virtual ~KSMServer();
~KSMServer() override;
public Q_SLOTS:
void startActivitySession(const QString &activity);
......
......@@ -30,14 +30,14 @@ class TemplatesPlugin : public Plugin {
public:
explicit TemplatesPlugin(QObject *parent = nullptr,
const QVariantList &args = QVariantList());
~TemplatesPlugin() Q_DECL_OVERRIDE;
~TemplatesPlugin() override;
bool init(QHash<QString, QObject *> &modules) Q_DECL_OVERRIDE;
bool init(QHash<QString, QObject *> &modules) override;
QDBusVariant featureValue(const QStringList &property) const Q_DECL_OVERRIDE;
QDBusVariant featureValue(const QStringList &property) const override;
virtual void setFeatureValue(const QStringList &property,
const QDBusVariant &value) Q_DECL_OVERRIDE;
void setFeatureValue(const QStringList &property,
const QDBusVariant &value) override;
public Q_SLOTS:
void createActivity(const QDBusVariant &values);
......
......@@ -30,9 +30,9 @@ class EventSpyPlugin : public Plugin {
public:
explicit EventSpyPlugin(QObject *parent = nullptr, const QVariantList &args = QVariantList());
~EventSpyPlugin() Q_DECL_OVERRIDE;
~EventSpyPlugin() override;
bool init(QHash<QString, QObject *> &modules) Q_DECL_OVERRIDE;
bool init(QHash<QString, QObject *> &modules) override;
private Q_SLOTS:
void directoryUpdated(const QString &dir);
......
......@@ -31,9 +31,9 @@ class GlobalShortcutsPlugin : public Plugin {
public:
explicit GlobalShortcutsPlugin(QObject *parent = nullptr, const QVariantList &args = QVariantList());
~GlobalShortcutsPlugin() Q_DECL_OVERRIDE;
~GlobalShortcutsPlugin() override;
bool init(QHash<QString, QObject *> &modules) Q_DECL_OVERRIDE;
bool init(QHash<QString, QObject *> &modules) override;
private Q_SLOTS:
void activityAdded(const QString &activity);
......
......@@ -26,9 +26,9 @@ class RunApplicationPlugin : public Plugin {
public:
explicit RunApplicationPlugin(QObject *parent = nullptr, const QVariantList &args = QVariantList());
~RunApplicationPlugin() Q_DECL_OVERRIDE;
~RunApplicationPlugin() override;
bool init(QHash<QString, QObject *> &modules) Q_DECL_OVERRIDE;
bool init(QHash<QString, QObject *> &modules) override;
private Q_SLOTS:
void currentActivityChanged(const QString &activity);
......
......@@ -27,9 +27,9 @@ class SlcPlugin : public Plugin {
public:
explicit SlcPlugin(QObject *parent = nullptr, const QVariantList &args = QVariantList());
~SlcPlugin() Q_DECL_OVERRIDE;
~SlcPlugin() override;
bool init(QHash<QString, QObject *> &modules) Q_DECL_OVERRIDE;
bool init(QHash<QString, QObject *> &modules) override;
private Q_SLOTS:
void registeredResourceEvent(const Event &event);
......
......@@ -50,7 +50,7 @@ public:
private:
ResourcesDatabaseMigrator();
~ResourcesDatabaseMigrator();
~ResourcesDatabaseMigrator() override;
void migrateDatabase(const QString &newDatabaseFile) const;
......
......@@ -35,7 +35,7 @@ class ResourceScoreMaintainer: public QObject {
public:
static ResourceScoreMaintainer *self();
virtual ~ResourceScoreMaintainer();
~ResourceScoreMaintainer() override;
void processResource(const QString &resource, const QString &application);
......
......@@ -50,7 +50,7 @@ public:
static StatsPlugin *self();
bool init(QHash<QString, QObject *> &modules) Q_DECL_OVERRIDE;
bool init(QHash<QString, QObject *> &modules) override;
QString currentActivity() const;
QStringList listActivities() const;
......@@ -58,11 +58,11 @@ public:
inline
QObject *activitiesInterface() const { return m_activities; }
bool isFeatureOperational(const QStringList &feature) const Q_DECL_OVERRIDE;
QStringList listFeatures(const QStringList &feature) const Q_DECL_OVERRIDE;
bool isFeatureOperational(const QStringList &feature) const override;
QStringList listFeatures(const QStringList &feature) const override;
QDBusVariant featureValue(const QStringList &property) const Q_DECL_OVERRIDE;
void setFeatureValue(const QStringList &property, const QDBusVariant &value) Q_DECL_OVERRIDE;
QDBusVariant featureValue(const QStringList &property) const override;
void setFeatureValue(const QStringList &property, const QDBusVariant &value) override;
//
// D-BUS Interface methods
......
......@@ -26,9 +26,9 @@ class VirtualDesktopSwitchPlugin : public Plugin {
public:
explicit VirtualDesktopSwitchPlugin(QObject *parent = nullptr, const QVariantList &args = QVariantList());
~VirtualDesktopSwitchPlugin() Q_DECL_OVERRIDE;
~VirtualDesktopSwitchPlugin() override;
bool init(QHash<QString, QObject *> &modules) Q_DECL_OVERRIDE;
bool init(QHash<QString, QObject *> &modules) override;
private Q_SLOTS:
void currentActivityChanged(const QString &activity);
......
Markdown is supported
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