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 fc7261f1 authored by Laurent Montel's avatar Laurent Montel 😁

use nullptr

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