From a7c24ca48995cf2bf436156302f96b91bf135409 Mon Sep 17 00:00:00 2001 From: Goraf <22941576+Goraf@users.noreply.github.com> Date: Mon, 13 Nov 2017 15:03:31 +0100 Subject: Code modernize ... * replace 0/NULL with nullptr [using clang-tidy] --- plugins/HistoryStats/src/mirandacontact.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/HistoryStats/src/mirandacontact.cpp') 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; } } -- cgit v1.2.3