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

Commit e768bac5 authored by Laurent Montel's avatar Laurent Montel 😁

Warning--

parent 8ef885bd
......@@ -476,7 +476,7 @@ public:
// check if T also inherits AgentBase::Observer and
// if it does, automatically register it on itself
Observer *observer = dynamic_cast<Observer *>(r);
if (observer != 0) {
if (observer != nullptr) {
r->registerObserver(observer);
}
return init(r);
......
......@@ -75,7 +75,6 @@ public:
Task()
: serial(++latestSerial)
, type(Invalid)
, receiver(0)
{
}
qint64 serial;
......
......@@ -34,7 +34,7 @@ class AgentProcessInstance : public AgentInstance
public:
explicit AgentProcessInstance(AgentManager *manager);
virtual ~AgentProcessInstance() {}
bool start(const AgentType &agentInfo) override;
void quit() override;
void cleanup() override;
......
......@@ -30,6 +30,7 @@ class AgentThreadInstance : public AgentInstance
Q_OBJECT
public:
explicit AgentThreadInstance(AgentManager *manager);
virtual ~AgentThreadInstance() {}
bool start(const AgentType &agentInfo) override;
void quit() override;
......
......@@ -42,7 +42,6 @@ class AgentManagerPrivate
public:
explicit AgentManagerPrivate(AgentManager *parent)
: mParent(parent)
, mManager(nullptr)
{
}
......
......@@ -39,7 +39,7 @@ class AKONADICORE_EXPORT CollectionIdentificationAttribute : public Akonadi::Att
public:
explicit CollectionIdentificationAttribute(const QByteArray &identifier = QByteArray(), const QByteArray &folderNamespace = QByteArray(),
const QByteArray &name = QByteArray(), const QByteArray &organizationUnit = QByteArray(), const QByteArray &mail = QByteArray());
~CollectionIdentificationAttribute();
~CollectionIdentificationAttribute() override;
/**
* Sets an identifier for the collection.
......
......@@ -82,7 +82,7 @@ public:
/**
* Destroys the collection path resolver.
*/
~CollectionPathResolver();
~CollectionPathResolver() override;
/**
* Returns the collection id. Only valid after the job succeeded.
......
......@@ -68,7 +68,7 @@ public:
/**
* Destroys the collection quota attribute.
*/
~CollectionQuotaAttribute();
~CollectionQuotaAttribute() override;
/**
* Sets the current quota @p value for the collection.
......
......@@ -53,7 +53,7 @@ public:
/**
* Destroys the collection rights attribute.
*/
~CollectionRightsAttribute();
~CollectionRightsAttribute() override;
/**
* Sets the @p rights of the collection.
......
......@@ -67,7 +67,7 @@ public:
/**
Destroys this job.
*/
~CollectionSync();
~CollectionSync() override;
/**
Sets the result of a full remote collection listing.
......
......@@ -101,7 +101,7 @@ public:
{
}
~EntityCache()
~EntityCache() override
{
qDeleteAll(mCache);
}
......
......@@ -55,7 +55,7 @@ public:
/**
* Destroys the entity deleted attribute.
*/
~EntityDeletedAttribute();
~EntityDeletedAttribute() override;
/**
* Sets the collection used to restore items which have been moved to trash using a TrashJob
* If the Resource is set on the collection, the resource root will be used as fallback during the restore operation.
......
......@@ -70,7 +70,7 @@ public:
/**
* Destroys the entity hidden attribute.
*/
~EntityHiddenAttribute();
~EntityHiddenAttribute() override;
/**
* Reimplemented from Attribute
......
......@@ -45,7 +45,7 @@ public:
/**
* Destroys the index policy attribute.
*/
~IndexPolicyAttribute();
~IndexPolicyAttribute() override;
/**
* Returns whether this collection is supposed to be indexed at all.
......
......@@ -89,7 +89,7 @@ template <typename T>
struct clone_traits_helper<T, true> {
static T *clone(T *t)
{
return t ? t->clone() : 0;
return t ? t->clone() : nullptr;
}
};
......
......@@ -72,7 +72,7 @@ public:
/**
* Destroys the item synchronizer.
*/
~ItemSync();
~ItemSync() override;
/**
* Sets the full item list for the collection.
......
......@@ -93,7 +93,7 @@ public:
/**
* Destroys the agent instance create job.
*/
~AgentInstanceCreateJob();
~AgentInstanceCreateJob() override;
/**
* Setup the job to show agent configuration dialog once the agent instance
......
......@@ -67,7 +67,7 @@ public:
/**
* Destroys the synchronization job.
*/
~CollectionAttributesSynchronizationJob();
~CollectionAttributesSynchronizationJob() override;
/* reimpl */
void start() override;
......
......@@ -73,7 +73,7 @@ public:
/**
* Destroys the collection copy job.
*/
~CollectionCopyJob();
~CollectionCopyJob() override;
protected:
void doStart() override;
......
......@@ -81,7 +81,7 @@ public:
/**
* Destroys the collection delete job.
*/
~CollectionDeleteJob();
~CollectionDeleteJob() override;
protected:
void doStart() override;
......
......@@ -99,7 +99,7 @@ public:
/**
* Destroys the collection modify job.
*/
~CollectionModifyJob();
~CollectionModifyJob() override;
/**
* Returns the modified collection.
......
......@@ -85,7 +85,7 @@ public:
/**
* Destroys the item copy job.
*/
~ItemCopyJob();
~ItemCopyJob() override;
protected:
void doStart() override;
......
......@@ -90,7 +90,7 @@ public:
/**
* Destroys the item create job.
*/
~ItemCreateJob();
~ItemCreateJob() override;
/**
* Returns the created item with the new unique id, or an invalid item if the job failed.
......
......@@ -83,7 +83,7 @@ public:
/**
* Destroys the item move job.
*/
~ItemMoveJob();
~ItemMoveJob() override;
/**
* Returns the destination collection.
......
......@@ -90,7 +90,7 @@ public:
/**
* Destroys the item search job.
*/
~ItemSearchJob();
~ItemSearchJob() override;
/**
* Sets the search @p query.
......
......@@ -81,7 +81,7 @@ public:
/**
* Destroys the link job.
*/
~LinkJob();
~LinkJob() override;
protected:
void doStart() override;
......
......@@ -101,7 +101,7 @@ public:
/**
* Destroys the recursive item fetch job.
*/
~RecursiveItemFetchJob();
~RecursiveItemFetchJob() override;
/**
* Sets the item fetch scope.
......
......@@ -72,7 +72,7 @@ public:
/**
* Destroys the synchronization job.
*/
~ResourceSynchronizationJob();
~ResourceSynchronizationJob() override;
/**
* Returns whether a full synchronization will be done, or just the collection tree (without items).
......
......@@ -159,7 +159,7 @@ public:
/**
* Destroys the search create job.
*/
~SearchCreateJob();
~SearchCreateJob() override;
/**
* Returns the newly created search collection once the job finished successfully. Returns an invalid
......
......@@ -50,7 +50,7 @@ public:
/**
* Destroys the special collections request job.
*/
~SpecialCollectionsDiscoveryJob();
~SpecialCollectionsDiscoveryJob() override;
void start() override;
......
......@@ -55,7 +55,7 @@ public:
/**
Destroys this ResourceScanJob.
*/
~ResourceScanJob();
~ResourceScanJob() override;
/**
Returns the resource ID of the resource being scanned.
......
......@@ -60,7 +60,7 @@ public:
/**
* Destroys the special collections request job.
*/
~SpecialCollectionsRequestJob();
~SpecialCollectionsRequestJob() override;
/**
* Requests a special collection of the given @p type in the default resource.
......
......@@ -48,7 +48,7 @@ public:
/**
* Destroys the subscription job.
*/
~SubscriptionJob();
~SubscriptionJob() override;
/**
* Subscribes to the given list of collections.
......
......@@ -32,7 +32,7 @@ class AKONADICORE_EXPORT TransactionJob : public Job
Q_OBJECT
public:
~TransactionJob();
~TransactionJob() override;
protected:
explicit TransactionJob(QObject *parent);
......
......@@ -80,7 +80,7 @@ public:
/**
* Destroys the transaction sequence.
*/
~TransactionSequence();
~TransactionSequence() override;
/**
* Commits the transaction as soon as all pending sub-jobs finished successfully.
......
......@@ -101,7 +101,7 @@ public:
*/
explicit TrashJob(const Collection &collection, QObject *parent = nullptr);
~TrashJob();
~TrashJob() override;
/**
* Ignore configured Trash collections and keep all items local
......
......@@ -65,7 +65,7 @@ public:
explicit TrashRestoreJob(const Collection &collection, QObject *parent = nullptr);
~TrashRestoreJob();
~TrashRestoreJob() override;
/**
* Sets the target collection, where the item is moved to.
......
......@@ -81,7 +81,7 @@ public:
/**
* Destroys the unlink job.
*/
~UnlinkJob();
~UnlinkJob() override;
protected:
void doStart() override;
......
......@@ -64,7 +64,7 @@ public:
/**
* Destroys the agent filter proxy model.
*/
~AgentFilterProxyModel();
~AgentFilterProxyModel() override;
/**
* Accept agents supporting @p mimeType.
......
......@@ -48,10 +48,6 @@ public:
Q_DECLARE_PUBLIC(CollectionModel)
explicit CollectionModelPrivate(CollectionModel *parent)
: q_ptr(parent)
, monitor(0)
, session(0)
, fetchStatistics(false)
, unsubscribed(false)
, headerContent(i18nc("@title:column, name of a thing", "Name"))
{
}
......
......@@ -51,7 +51,7 @@ public:
/**
Destructor.
*/
~SubscriptionModel();
~SubscriptionModel() override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
Qt::ItemFlags flags(const QModelIndex &index) const override;
......
......@@ -31,7 +31,7 @@ class AKONADICORE_EXPORT NewMailNotifierAttribute : public Akonadi::Attribute
{
public:
NewMailNotifierAttribute();
~NewMailNotifierAttribute();
~NewMailNotifierAttribute() override;
/* reimpl */
NewMailNotifierAttribute *clone() const override;
......
......@@ -83,7 +83,7 @@ public:
/**
* Destroys the persistent search attribute.
*/
~PersistentSearchAttribute();
~PersistentSearchAttribute() override;
/**
* Returns the query string used for this search.
......
......@@ -31,7 +31,7 @@ class AKONADICORE_EXPORT Pop3ResourceAttribute : public Akonadi::Attribute
{
public:
Pop3ResourceAttribute();
~Pop3ResourceAttribute();
~Pop3ResourceAttribute() override;
/* reimpl */
Pop3ResourceAttribute *clone() const override;
......
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