Commit 3c8387b6 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add missing override on destructor

parent cf027722
Pipeline #43297 skipped
......@@ -15,7 +15,7 @@ class GoogleResourceState : public GoogleResourceStateInterface
{
public:
explicit GoogleResourceState(GoogleResource *resource);
~GoogleResourceState() = default;
~GoogleResourceState() override = default;
// Items handling
void itemRetrieved(const Akonadi::Item &item) override;
......
......@@ -20,7 +20,7 @@ class ICalResourceBase : public Akonadi::SingleFileResource<SETTINGS_NAMESPACE::
public:
explicit ICalResourceBase(const QString &id);
~ICalResourceBase();
~ICalResourceBase() override;
protected:
using ResourceBase::retrieveItems; // Suppress -Woverload-virtual
......
......@@ -21,7 +21,7 @@ public:
typedef QSharedPointer<DummyResourceState> Ptr;
explicit DummyResourceState();
~DummyResourceState();
~DummyResourceState() override;
void setUserName(const QString &name);
QString userName() const override;
......
......@@ -40,7 +40,7 @@ protected:
public:
explicit ImapResourceBase(const QString &id);
~ImapResourceBase();
~ImapResourceBase() override;
virtual QDialog *createConfigureDialog(WId windowId) = 0;
......
......@@ -105,7 +105,7 @@ public:
explicit ResourceState(ImapResourceBase *resource, const TaskArguments &arguments);
public:
~ResourceState();
~ResourceState() override;
QString userName() const override;
QString resourceName() const override;
......
......@@ -15,7 +15,7 @@ class SearchTask : public ResourceTask
Q_OBJECT
public:
SearchTask(const ResourceStateInterface::Ptr &state, const QString &query, QObject *parent);
~SearchTask();
~SearchTask() override;
protected:
void doStart(KIMAP::Session *session) override;
......
......@@ -24,7 +24,7 @@ class KAlarmDirResource : public Akonadi::ResourceBase, public Akonadi::AgentBas
Q_OBJECT
public:
explicit KAlarmDirResource(const QString &id);
~KAlarmDirResource();
~KAlarmDirResource() override;
public Q_SLOTS:
void configure(WId windowId) override;
......
......@@ -45,7 +45,7 @@ public:
explicit Contact(const KContacts::Addressee *address);
Contact(const QString &xml);
~Contact();
~Contact() override;
void saveTo(KContacts::Addressee *address);
......
......@@ -20,7 +20,7 @@ class DistributionList : public KolabBase
public:
explicit DistributionList(const KContacts::ContactGroup *contactGroup);
DistributionList(const QString &xml);
~DistributionList();
~DistributionList() override;
void saveTo(KContacts::ContactGroup *contactGroup);
......
......@@ -35,7 +35,7 @@ public:
/// Create a event object and
explicit Event(const QString &tz, const KCalendarCore::Event::Ptr &event = KCalendarCore::Event::Ptr());
virtual ~Event();
~Event() override;
void saveTo(const KCalendarCore::Event::Ptr &event);
......
......@@ -35,7 +35,7 @@ public:
/// Create a note object and
explicit Note(const KCalendarCore::Journal::Ptr &journal = KCalendarCore::Journal::Ptr());
virtual ~Note();
~Note() override;
void saveTo(const KCalendarCore::Journal::Ptr &journal) const;
......
......@@ -23,7 +23,7 @@ public:
DeletedItemsAttribute(const DeletedItemsAttribute &other);
~DeletedItemsAttribute();
~DeletedItemsAttribute() override;
void addDeletedItemOffset(quint64);
......
......@@ -22,7 +22,7 @@ class MixedMaildirResource : public Akonadi::ResourceBase, public Akonadi::Agent
public:
explicit MixedMaildirResource(const QString &id);
~MixedMaildirResource();
~MixedMaildirResource() override;
protected Q_SLOTS:
void retrieveCollections() override;
......
......@@ -17,7 +17,7 @@ class MixedMaildirStore : public Akonadi::FileStore::AbstractLocalStore
public:
MixedMaildirStore();
~MixedMaildirStore();
~MixedMaildirStore() override;
protected:
void setTopLevelCollection(const Akonadi::Collection &collection) override;
......
......@@ -26,7 +26,7 @@ class RetrieveItemsJob : public Akonadi::Job
public:
RetrieveItemsJob(const Akonadi::Collection &collection, MixedMaildirStore *store, QObject *parent = nullptr);
~RetrieveItemsJob();
~RetrieveItemsJob() override;
Akonadi::Collection collection() const;
......
......@@ -15,7 +15,7 @@ class OpenXchangeResource : public Akonadi::ResourceBase, public Akonadi::AgentB
public:
explicit OpenXchangeResource(const QString &id);
~OpenXchangeResource();
~OpenXchangeResource() override;
void cleanup() override;
......
......@@ -68,7 +68,7 @@ class SlaveBaseJob : public KJob
public:
explicit SlaveBaseJob(POPSession *POPSession);
~SlaveBaseJob();
~SlaveBaseJob() override;
virtual void slaveError(int errorCode, const QString &errorMessage);
......
......@@ -27,7 +27,7 @@ class AKONADI_FILESTORE_EXPORT AbstractLocalStore : public QObject, public Store
public:
AbstractLocalStore();
~AbstractLocalStore();
~AbstractLocalStore() override;
virtual void setPath(const QString &path);
QString path() const;
......
......@@ -19,7 +19,7 @@ class AKONADI_FILESTORE_EXPORT EntityCompactChangeAttribute : public Attribute
public:
EntityCompactChangeAttribute();
~EntityCompactChangeAttribute();
~EntityCompactChangeAttribute() override;
void setRemoteId(const QString &remoteId);
......
......@@ -42,7 +42,7 @@ public:
setNeedsNetwork(!QUrl::fromUserInput(mSettings->path()).isLocalFile());
}
~SingleFileResource()
~SingleFileResource() override
{
delete mSettings;
}
......
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