summaryrefslogtreecommitdiff
path: root/plugins/HistoryStats/src/mirandacontact.cpp
diff options
context:
space:
mode:
authorGoraf <22941576+Goraf@users.noreply.github.com>2017-11-13 15:03:31 +0100
committerGoraf <22941576+Goraf@users.noreply.github.com>2017-11-13 15:07:33 +0100
commita7c24ca48995cf2bf436156302f96b91bf135409 (patch)
tree953835509ff1b778833e78fd7b74b05e05e77c84 /plugins/HistoryStats/src/mirandacontact.cpp
parent591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff)
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/HistoryStats/src/mirandacontact.cpp')
-rw-r--r--plugins/HistoryStats/src/mirandacontact.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/HistoryStats/src/mirandacontact.cpp b/plugins/HistoryStats/src/mirandacontact.cpp
index f217bb5bb7..66de169919 100644
--- a/plugins/HistoryStats/src/mirandacontact.cpp
+++ b/plugins/HistoryStats/src/mirandacontact.cpp
@@ -46,7 +46,7 @@ void MirandaContact::stripMetaID(DBEVENTINFO& dbe)
if (dbe.cbBlob >= 6 && !pTextBegin[dbe.cbBlob - 1]) {
char* pIDEnd = pTextBegin + dbe.cbBlob - 1;
char* pIDBegin = pIDEnd;
- char* pIDSep = NULL;
+ char* pIDSep = nullptr;
while (pIDBegin >= pTextBegin + 2 && *--pIDBegin)
if (*pIDBegin == '*')
@@ -104,7 +104,7 @@ void MirandaContact::beginRead()
ci.hContact = m_Sources[j];
ci.hEvent = db_event_first(ci.hContact);
- ci.ei.dbe.pBlob = NULL;
+ ci.ei.dbe.pBlob = nullptr;
ci.ei.nAllocated = 0;
fetchSlot(j);
@@ -209,7 +209,7 @@ void MirandaContactTolerantMerge::fillQueue()
m_SpareEIs.pop_front();
}
else {
- ci.ei.dbe.pBlob = NULL;
+ ci.ei.dbe.pBlob = nullptr;
ci.ei.nAllocated = 0;
}
}
@@ -273,7 +273,7 @@ void MirandaContactStrictMerge::fillQueue()
m_SpareEIs.pop_front();
}
else {
- ci.ei.dbe.pBlob = NULL;
+ ci.ei.dbe.pBlob = nullptr;
ci.ei.nAllocated = 0;
}
}
@@ -310,7 +310,7 @@ void MirandaContactNoMerge::fillQueue()
m_SpareEIs.pop_front();
}
else {
- ci.ei.dbe.pBlob = NULL;
+ ci.ei.dbe.pBlob = nullptr;
ci.ei.nAllocated = 0;
}
@@ -335,6 +335,6 @@ MirandaContact* MirandaContactFactory::makeMirandaContact(int MergeMode, const e
return new MirandaContactNoMerge(strNick, strProtocol, strGroup, sources);
default:
- return 0;
+ return nullptr;
}
}