Commit 6de220ef authored by Laurent Montel's avatar Laurent Montel 😁

use nullptr

parent 9ddbf11f
......@@ -26,7 +26,7 @@ class ResourceSchedulerTest : public QObject
{
Q_OBJECT
public:
explicit ResourceSchedulerTest(QObject *parent = 0);
explicit ResourceSchedulerTest(QObject *parent = nullptr);
public Q_SLOTS:
void customTask(const QVariant &argument);
......
......@@ -35,7 +35,7 @@ class AKONADI_EXPORT VirtualResource : public QObject
{
Q_OBJECT
public:
explicit VirtualResource(const QString &name, QObject *parent = 0);
explicit VirtualResource(const QString &name, QObject *parent = nullptr);
~VirtualResource();
Akonadi::Collection createCollection(const Akonadi::Collection &collection);
......
......@@ -102,7 +102,7 @@ public:
}
};
explicit ResourceScheduler(QObject *parent = 0);
explicit ResourceScheduler(QObject *parent = nullptr);
/**
Schedules a full synchronization.
......
......@@ -47,7 +47,7 @@ class AKONADICORE_EXPORT AsyncSelectionHandler : public QObject
public:
/**
*/
explicit AsyncSelectionHandler(QAbstractItemModel *model, QObject *parent = 0);
explicit AsyncSelectionHandler(QAbstractItemModel *model, QObject *parent = nullptr);
~AsyncSelectionHandler();
......
......@@ -67,7 +67,7 @@ public:
* @param type The type of the conflict that should be resolved.
* @param parent The parent object.
*/
explicit ConflictHandler(ConflictType type, QObject *parent = 0);
explicit ConflictHandler(ConflictType type, QObject *parent = nullptr);
/**
* Sets the items that causes the conflict.
......
......@@ -54,7 +54,7 @@ class AKONADI_TESTS_EXPORT EntityCacheBase : public QObject
{
Q_OBJECT
public:
explicit EntityCacheBase(Session *session, QObject *parent = 0);
explicit EntityCacheBase(Session *session, QObject *parent = nullptr);
void setSession(Session *session);
......@@ -95,7 +95,7 @@ class EntityCache : public EntityCacheBase
{
public:
typedef FetchScope_ FetchScope;
explicit EntityCache(int maxCapacity, Session *session = 0, QObject *parent = 0)
explicit EntityCache(int maxCapacity, Session *session = 0, QObject *parent = nullptr)
: EntityCacheBase(session, parent)
, mCapacity(maxCapacity)
{
......@@ -306,7 +306,7 @@ class EntityListCache : public EntityCacheBase
public:
typedef FetchScope_ FetchScope;
explicit EntityListCache(int maxCapacity, Session *session = 0, QObject *parent = 0)
explicit EntityListCache(int maxCapacity, Session *session = 0, QObject *parent = nullptr)
: EntityCacheBase(session, parent)
, mCapacity(maxCapacity)
{
......
......@@ -91,7 +91,7 @@ public:
* the selection.
* @param parent The parent object.
*/
explicit ResourceSelectJob(const QString &identifier, QObject *parent = 0);
explicit ResourceSelectJob(const QString &identifier, QObject *parent = nullptr);
protected:
void doStart() Q_DECL_OVERRIDE;
......
......@@ -34,7 +34,7 @@ class AKONADICORE_EXPORT SearchResultJob : public Akonadi::Job
{
Q_OBJECT
public:
explicit SearchResultJob(const QByteArray &searchId, const Collection &collection, QObject *parent = 0);
explicit SearchResultJob(const QByteArray &searchId, const Collection &collection, QObject *parent = nullptr);
virtual ~SearchResultJob();
void setSearchId(const QByteArray &searchId);
......
......@@ -50,7 +50,7 @@ public:
/**
Creates a new ResourceScanJob.
*/
explicit ResourceScanJob(const QString &resourceId, KCoreConfigSkeleton *settings, QObject *parent = 0);
explicit ResourceScanJob(const QString &resourceId, KCoreConfigSkeleton *settings, QObject *parent = nullptr);
/**
Destroys this ResourceScanJob.
......@@ -121,7 +121,7 @@ public:
/**
* Creates a new DefaultResourceJob.
*/
explicit DefaultResourceJob(KCoreConfigSkeleton *settings, QObject *parent = 0);
explicit DefaultResourceJob(KCoreConfigSkeleton *settings, QObject *parent = nullptr);
/**
* Destroys the DefaultResourceJob.
......@@ -199,7 +199,7 @@ public:
/**
Creates a new GetLockJob.
*/
explicit GetLockJob(QObject *parent = 0);
explicit GetLockJob(QObject *parent = nullptr);
/**
Destroys the GetLockJob.
......
......@@ -43,7 +43,7 @@ public:
*
* @param parent The parent object.
*/
explicit SubscriptionJob(QObject *parent = 0);
explicit SubscriptionJob(QObject *parent = nullptr);
/**
* Destroys the subscription job.
......
......@@ -46,7 +46,7 @@ public:
Create a new subscription model.
@param parent The parent object.
*/
explicit SubscriptionModel(QObject *parent = 0);
explicit SubscriptionModel(QObject *parent = nullptr);
/**
Destructor.
......
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