Commit 93bc9d6f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use override keyword

parent 9f79985b
......@@ -19,8 +19,8 @@ class KDEDAccounts : public KDEDModule
Q_CLASSINFO("D-Bus Interface", "org.kde.Accounts")
public:
KDEDAccounts(QObject *parent, const QList<QVariant> &);
virtual ~KDEDAccounts();
explicit KDEDAccounts(QObject *parent, const QList<QVariant> &);
~KDEDAccounts() override;
public Q_SLOTS:
void startDaemon();
......
......@@ -24,7 +24,7 @@ class KACCOUNTS_EXPORT AccountServiceToggleJob : public KJob
Q_PROPERTY(bool serviceEnabled READ serviceEnabled WRITE setServiceEnabled NOTIFY serviceEnabledChanged)
public:
explicit AccountServiceToggleJob(QObject *parent = nullptr);
virtual ~AccountServiceToggleJob();
~AccountServiceToggleJob() override;
void start() override;
......
......@@ -46,7 +46,7 @@ public:
DataObjectRole,
};
explicit AccountsModel(QObject *parent = nullptr);
virtual ~AccountsModel();
~AccountsModel() override;
QHash<int, QByteArray> roleNames() const override;
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
......
......@@ -26,7 +26,7 @@ class KACCOUNTS_EXPORT ChangeAccountDisplayNameJob : public KJob
Q_PROPERTY(QString displayName READ displayName WRITE setDisplayName NOTIFY displayNameChanged)
public:
explicit ChangeAccountDisplayNameJob(QObject *parent = nullptr);
virtual ~ChangeAccountDisplayNameJob();
~ChangeAccountDisplayNameJob() override;
void start() override;
......
......@@ -47,7 +47,7 @@ public:
*/
GetCredentialsJob(Accounts::AccountId id, const QString &authMethod = QString(), const QString &authMechanism = QString(), QObject *parent = nullptr);
~GetCredentialsJob();
~GetCredentialsJob() override;
/**
* Starts the credentials job
*/
......
......@@ -41,7 +41,7 @@ class KACCOUNTS_EXPORT KAccountsDPlugin : public QObject
public:
KAccountsDPlugin(QObject *parent, const QVariantList &args);
virtual ~KAccountsDPlugin();
~KAccountsDPlugin() override;
public Q_SLOTS:
/**
......
......@@ -25,7 +25,7 @@ public:
};
explicit KAccountsUiPlugin(QObject *parent = nullptr);
virtual ~KAccountsUiPlugin();
~KAccountsUiPlugin() override;
virtual void init(UiType type) = 0;
......
......@@ -38,7 +38,7 @@ public:
AccountsCountRole, ///< The number of accounts which already exist for this provider
};
explicit ProvidersModel(QObject *parent = nullptr);
virtual ~ProvidersModel();
~ProvidersModel() override;
QHash<int, QByteArray> roleNames() const override;
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
......
......@@ -22,7 +22,7 @@ class KACCOUNTS_EXPORT RemoveAccountJob : public KJob
Q_PROPERTY(QString accountId READ accountId WRITE setAccountId NOTIFY accountIdChanged)
public:
explicit RemoveAccountJob(QObject *parent = nullptr);
virtual ~RemoveAccountJob();
~RemoveAccountJob() override;
void start() override;
......
......@@ -67,7 +67,7 @@ public:
EnabledRole,
};
explicit ServicesModel(QObject *parent = nullptr);
virtual ~ServicesModel();
~ServicesModel() override;
QHash<int, QByteArray> roleNames() const override;
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
......
......@@ -27,7 +27,7 @@ class CreateKioService : public KJob
public:
explicit CreateKioService(QObject *parent = nullptr);
virtual ~CreateKioService();
~CreateKioService() override;
void start() override;
......
......@@ -21,7 +21,7 @@ class CreateNetAttachJob : public KJob
public:
explicit CreateNetAttachJob(QObject *parent = nullptr);
virtual ~CreateNetAttachJob();
~CreateNetAttachJob() override;
void start() override;
......
......@@ -20,7 +20,7 @@ class RemoveNetAttachJob : public KJob
public:
explicit RemoveNetAttachJob(QObject *parent);
virtual ~RemoveNetAttachJob();
~RemoveNetAttachJob() override;
void start() 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