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

use nullptr

parent 5c4bd4c3
...@@ -42,7 +42,7 @@ EmptyTrashCommand::EmptyTrashCommand(const QAbstractItemModel *model, QObject *p ...@@ -42,7 +42,7 @@ EmptyTrashCommand::EmptyTrashCommand(const QAbstractItemModel *model, QObject *p
EmptyTrashCommand::EmptyTrashCommand(const Akonadi::Collection &folder, QObject *parent) EmptyTrashCommand::EmptyTrashCommand(const Akonadi::Collection &folder, QObject *parent)
: CommandBase(parent) : CommandBase(parent)
, mModel(0) , mModel(nullptr)
, the_trashCollectionFolder(-1) , the_trashCollectionFolder(-1)
, mFolder(folder) , mFolder(folder)
, mNumberOfTrashToEmpty(0) , mNumberOfTrashToEmpty(0)
......
...@@ -191,7 +191,7 @@ void MarkAsCommand::markMessages() ...@@ -191,7 +191,7 @@ void MarkAsCommand::markMessages()
d->mMarkJobCount++; d->mMarkJobCount++;
if (itemsToModify.isEmpty()) { if (itemsToModify.isEmpty()) {
slotModifyItemDone(0); // pretend we did something slotModifyItemDone(nullptr); // pretend we did something
} else { } else {
Akonadi::ItemModifyJob *modifyJob = new Akonadi::ItemModifyJob(itemsToModify, this); Akonadi::ItemModifyJob *modifyJob = new Akonadi::ItemModifyJob(itemsToModify, this);
modifyJob->setIgnorePayload(true); modifyJob->setIgnorePayload(true);
......
...@@ -59,7 +59,7 @@ static inline QByteArray enumToType(SpecialMailCollections::Type type) ...@@ -59,7 +59,7 @@ static inline QByteArray enumToType(SpecialMailCollections::Type type)
SpecialMailCollectionsRequestJob::SpecialMailCollectionsRequestJob(QObject *parent) SpecialMailCollectionsRequestJob::SpecialMailCollectionsRequestJob(QObject *parent)
: SpecialCollectionsRequestJob(SpecialMailCollections::self(), parent) : SpecialCollectionsRequestJob(SpecialMailCollections::self(), parent)
, d(0) , d(nullptr)
{ {
static QMap<QByteArray, QString> displayNameMap; static QMap<QByteArray, QString> displayNameMap;
displayNameMap.insert("local-mail", i18nc("local mail folder", "Local Folders")); displayNameMap.insert("local-mail", i18nc("local mail folder", "Local Folders"));
......
...@@ -59,8 +59,8 @@ public: ...@@ -59,8 +59,8 @@ public:
Private(KActionCollection *actionCollection, QWidget *parentWidget, StandardMailActionManager *parent) Private(KActionCollection *actionCollection, QWidget *parentWidget, StandardMailActionManager *parent)
: mActionCollection(actionCollection) : mActionCollection(actionCollection)
, mParentWidget(parentWidget) , mParentWidget(parentWidget)
, mCollectionSelectionModel(0) , mCollectionSelectionModel(nullptr)
, mItemSelectionModel(0) , mItemSelectionModel(nullptr)
, mParent(parent) , mParent(parent)
{ {
mGenericManager = new StandardActionManager(actionCollection, parentWidget); mGenericManager = new StandardActionManager(actionCollection, parentWidget);
......
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