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/SecureIM/src/splitmsg.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/SecureIM/src/splitmsg.cpp') diff --git a/plugins/SecureIM/src/splitmsg.cpp b/plugins/SecureIM/src/splitmsg.cpp index db0cf190a2..a4f1d8a946 100644 --- a/plugins/SecureIM/src/splitmsg.cpp +++ b/plugins/SecureIM/src/splitmsg.cpp @@ -38,7 +38,7 @@ LPSTR combineMessage(pUinKey ptr, LPSTR szMsg) int msg_id, part_num, part_all; sscanf(szMsg, "%4X%2X%2X", &msg_id, &part_num, &part_all); // - pPM ppm = NULL, pm = ptr->msgPart; + pPM ppm = nullptr, pm = ptr->msgPart; if (!ptr->msgPart) { pm = ptr->msgPart = new partitionMessage; memset(pm, 0, sizeof(partitionMessage)); @@ -65,7 +65,7 @@ LPSTR combineMessage(pUinKey ptr, LPSTR szMsg) int len = 0, i; for (i = 0; i < part_all; i++) { - if (pm->message[i] == NULL) break; + if (pm->message[i] == nullptr) break; len += (int)mir_strlen(pm->message[i]); } if (i == part_all) { // combine message @@ -87,7 +87,7 @@ LPSTR combineMessage(pUinKey ptr, LPSTR szMsg) Sent_NetLog("combine: not all parts"); // not combined yet - return NULL; + return nullptr; } // отправляет сообщение, если надо то разбивает на части -- cgit v1.2.3