Commit b3d8a613 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use nullptr

parent 7fa74255
......@@ -45,7 +45,7 @@ public:
* Creates a new etag cache and populates it with the ETags
* of items found in @p collection.
*/
explicit AkonadiEtagCache(const Akonadi::Collection &collection, QObject *parent = Q_NULLPTR);
explicit AkonadiEtagCache(const Akonadi::Collection &collection, QObject *parent = nullptr);
private Q_SLOTS:
void onItemFetchJobFinished(KJob *job);
......
......@@ -37,7 +37,7 @@ class GoogleAccountManager : public QObject
Q_OBJECT
public:
explicit GoogleAccountManager(QObject *parent = Q_NULLPTR);
explicit GoogleAccountManager(QObject *parent = nullptr);
virtual ~GoogleAccountManager();
bool isReady() const;
......
......@@ -77,7 +77,7 @@ protected Q_SLOTS:
protected:
bool configureKGAPIAccount(const KGAPI2::AccountPtr &account);
void updateAccountToken(const KGAPI2::AccountPtr &account, KGAPI2::Job *restartJob = Q_NULLPTR);
void updateAccountToken(const KGAPI2::AccountPtr &account, KGAPI2::Job *restartJob = nullptr);
template <typename T>
bool canPerformTask(const Akonadi::Item &item, const QString &mimeType = QString())
......
......@@ -26,7 +26,7 @@ class DummyPasswordRequester : public PasswordRequesterInterface
{
Q_OBJECT
public:
DummyPasswordRequester(QObject *parent = Q_NULLPTR);
DummyPasswordRequester(QObject *parent = nullptr);
QString password() const;
void setPassword(const QString &password);
......
......@@ -41,7 +41,7 @@ class ImapTestBase : public QObject
Q_OBJECT
public:
ImapTestBase(QObject *parent = Q_NULLPTR);
ImapTestBase(QObject *parent = nullptr);
protected:
QString defaultUserName() const;
......
......@@ -27,7 +27,7 @@ Q_DECLARE_METATYPE(ResourceTask::ActionIfNoSession)
class DummyResourceTask : public ResourceTask
{
public:
explicit DummyResourceTask(ActionIfNoSession action, ResourceStateInterface::Ptr resource, QObject *parent = Q_NULLPTR)
explicit DummyResourceTask(ActionIfNoSession action, ResourceStateInterface::Ptr resource, QObject *parent = nullptr)
: ResourceTask(action, resource, parent)
{
......
......@@ -32,7 +32,7 @@ class TestRetrieveCollectionsTask : public ImapTestBase
{
Q_OBJECT
public:
TestRetrieveCollectionsTask(QObject *parent = Q_NULLPTR)
TestRetrieveCollectionsTask(QObject *parent = nullptr)
: ImapTestBase(parent), m_nextCollectionId(1)
{
}
......
......@@ -35,7 +35,7 @@ class AlarmTypeRadioWidget : public Akonadi::SingleFileValidatingWidget
{
Q_OBJECT
public:
explicit AlarmTypeRadioWidget(QWidget *parent = Q_NULLPTR);
explicit AlarmTypeRadioWidget(QWidget *parent = nullptr);
void setAlarmType(CalEvent::Type);
CalEvent::Type alarmType() const;
bool validate() const Q_DECL_OVERRIDE;
......
......@@ -32,7 +32,7 @@ class ConnectionTestJob : public KJob
Q_OBJECT
public:
ConnectionTestJob(const QString &url, const QString &user, const QString &password, QObject *parent = Q_NULLPTR);
ConnectionTestJob(const QString &url, const QString &user, const QString &password, QObject *parent = nullptr);
void start() Q_DECL_OVERRIDE;
......
......@@ -45,7 +45,7 @@ public:
* @param folder The folder to create.
* @param parent The parent object.
*/
explicit FolderCreateJob(const Folder &folder, QObject *parent = Q_NULLPTR);
explicit FolderCreateJob(const Folder &folder, QObject *parent = nullptr);
/**
* Starts the job.
......
......@@ -47,7 +47,7 @@ public:
*
* @note The folder needs the objectId, folderId and lastModified property set.
*/
explicit FolderDeleteJob(const Folder &folder, QObject *parent = Q_NULLPTR);
explicit FolderDeleteJob(const Folder &folder, QObject *parent = nullptr);
/**
* Starts the job.
......
......@@ -47,7 +47,7 @@ public:
*
* @note The folder needs at least the objectId and lastModified property set.
*/
explicit FolderModifyJob(const Folder &folder, QObject *parent = Q_NULLPTR);
explicit FolderModifyJob(const Folder &folder, QObject *parent = nullptr);
/**
* Starts the job.
......
......@@ -49,7 +49,7 @@ public:
* @note The folder needs the objectId, folderId and lastModified property set, the
* destinationFolder the objectId property.
*/
FolderMoveJob(const Folder &folder, const Folder &destinationFolder, QObject *parent = Q_NULLPTR);
FolderMoveJob(const Folder &folder, const Folder &destinationFolder, QObject *parent = nullptr);
/**
* Starts the job.
......
......@@ -47,7 +47,7 @@ public:
*
* @note The folder needs the objectId property set.
*/
explicit FolderRequestJob(const Folder &folder, QObject *parent = Q_NULLPTR);
explicit FolderRequestJob(const Folder &folder, QObject *parent = nullptr);
/**
* Starts the job.
......
......@@ -46,7 +46,7 @@ public:
* after this date will be requested. 0 will request all available folders.
* @param parent The parent object.
*/
explicit FoldersRequestDeltaJob(qulonglong lastSync, QObject *parent = Q_NULLPTR);
explicit FoldersRequestDeltaJob(qulonglong lastSync, QObject *parent = nullptr);
/**
* Starts the job.
......
......@@ -55,7 +55,7 @@ public:
* @param mode The mode of folders to request.
* @param parent The parent object.
*/
explicit FoldersRequestJob(qulonglong lastSync = 0, Mode mode = Modified, QObject *parent = Q_NULLPTR);
explicit FoldersRequestJob(qulonglong lastSync = 0, Mode mode = Modified, QObject *parent = nullptr);
/**
* Starts the job.
......
......@@ -34,7 +34,7 @@ class ObjectCreateJob : public KJob
Q_OBJECT
public:
explicit ObjectCreateJob(const Object &object, QObject *parent = Q_NULLPTR);
explicit ObjectCreateJob(const Object &object, QObject *parent = nullptr);
void start() Q_DECL_OVERRIDE;
......
......@@ -34,7 +34,7 @@ class ObjectDeleteJob : public KJob
Q_OBJECT
public:
explicit ObjectDeleteJob(const Object &object, QObject *parent = Q_NULLPTR);
explicit ObjectDeleteJob(const Object &object, QObject *parent = nullptr);
void start() Q_DECL_OVERRIDE;
......
......@@ -34,7 +34,7 @@ class ObjectModifyJob : public KJob
Q_OBJECT
public:
explicit ObjectModifyJob(const Object &object, QObject *parent = Q_NULLPTR);
explicit ObjectModifyJob(const Object &object, QObject *parent = nullptr);
void start() Q_DECL_OVERRIDE;
......
......@@ -35,7 +35,7 @@ class ObjectMoveJob : public KJob
Q_OBJECT
public:
ObjectMoveJob(const Object &object, const Folder &destinationFolder, QObject *parent = Q_NULLPTR);
ObjectMoveJob(const Object &object, const Folder &destinationFolder, QObject *parent = nullptr);
void start() Q_DECL_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