Commit 99d7874f authored by Laurent Montel's avatar Laurent Montel 😁

Use nullptr

parent 09288dfd
......@@ -59,7 +59,7 @@ bool SendVcardsJob::start()
if (mListItem.isEmpty()) {
qCDebug(KADDRESSBOOK_SENDVCARDS_LOG) << " No Item found";
mAttachmentTemporary->deleteLater();
mAttachmentTemporary = 0;
mAttachmentTemporary = nullptr;
deleteLater();
return false;
}
......
......@@ -41,7 +41,7 @@
#include <KStandardGuiItem>
namespace MessageViewer {
QAbstractItemModel *_k_eventEditStubModel = 0;
QAbstractItemModel *_k_eventEditStubModel = nullptr;
}
using namespace MessageViewer;
......
......@@ -39,7 +39,7 @@
#include <KStandardGuiItem>
namespace MessageViewer {
QAbstractItemModel *_k_todoEditStubModel = 0;
QAbstractItemModel *_k_todoEditStubModel = nullptr;
}
using namespace MessageViewer;
......
......@@ -110,7 +110,7 @@ void AdBlockShowListDialog::downLoadList(const QString &url)
if (!mTemporaryFile->open()) {
qCDebug(ADBLOCKINTERCEPTOR_LOG) << "can not open temporary file";
delete mTemporaryFile;
mTemporaryFile = 0;
mTemporaryFile = nullptr;
return;
}
QUrl subUrl(url);
......@@ -147,7 +147,7 @@ void AdBlockShowListDialog::slotFinished(KJob *job)
}
mTemporaryFile->close();
delete mTemporaryFile;
mTemporaryFile = 0;
mTemporaryFile = nullptr;
}
void AdBlockShowListDialog::slotDeleteBrokenList()
......
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