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

use nullptr

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