summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-05-11 07:38:27 +0200
committerMontel Laurent <[email protected]>2017-05-11 07:38:27 +0200
commit99d7874fe49a4e72d1ede410eefb61985589c392 (patch)
tree2eed6fc2f79a0ee3770579862b3f2ad1af6c181f
parent09288dfd80575750ccb77260bfee869765017a11 (diff)
Use nullptr
-rw-r--r--kaddressbook/plugins/sendvcards/sendvcardsjob.cpp2
-rw-r--r--plugins/messageviewerplugins/createeventplugin/eventedit.cpp2
-rw-r--r--plugins/messageviewerplugins/createtodoplugin/todoedit.cpp2
-rw-r--r--plugins/webengineurlinterceptor/adblock/lib/widgets/adblockshowlistdialog.cpp4
4 files changed, 5 insertions, 5 deletions
diff --git a/kaddressbook/plugins/sendvcards/sendvcardsjob.cpp b/kaddressbook/plugins/sendvcards/sendvcardsjob.cpp
index 57fc4cd..a8a4a11 100644
--- a/kaddressbook/plugins/sendvcards/sendvcardsjob.cpp
+++ b/kaddressbook/plugins/sendvcards/sendvcardsjob.cpp
@@ -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;
}
diff --git a/plugins/messageviewerplugins/createeventplugin/eventedit.cpp b/plugins/messageviewerplugins/createeventplugin/eventedit.cpp
index 5282d61..8f9b1ce 100644
--- a/plugins/messageviewerplugins/createeventplugin/eventedit.cpp
+++ b/plugins/messageviewerplugins/createeventplugin/eventedit.cpp
@@ -41,7 +41,7 @@
#include <KStandardGuiItem>
namespace MessageViewer {
-QAbstractItemModel *_k_eventEditStubModel = 0;
+QAbstractItemModel *_k_eventEditStubModel = nullptr;
}
using namespace MessageViewer;
diff --git a/plugins/messageviewerplugins/createtodoplugin/todoedit.cpp b/plugins/messageviewerplugins/createtodoplugin/todoedit.cpp
index 42f7f34..9930663 100644
--- a/plugins/messageviewerplugins/createtodoplugin/todoedit.cpp
+++ b/plugins/messageviewerplugins/createtodoplugin/todoedit.cpp
@@ -39,7 +39,7 @@
#include <KStandardGuiItem>
namespace MessageViewer {
-QAbstractItemModel *_k_todoEditStubModel = 0;
+QAbstractItemModel *_k_todoEditStubModel = nullptr;
}
using namespace MessageViewer;
diff --git a/plugins/webengineurlinterceptor/adblock/lib/widgets/adblockshowlistdialog.cpp b/plugins/webengineurlinterceptor/adblock/lib/widgets/adblockshowlistdialog.cpp
index 92fe802..dc2dbae 100644
--- a/plugins/webengineurlinterceptor/adblock/lib/widgets/adblockshowlistdialog.cpp
+++ b/plugins/webengineurlinterceptor/adblock/lib/widgets/adblockshowlistdialog.cpp
@@ -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()