summaryrefslogtreecommitdiff
path: root/plugins/SecureIM/src/splitmsg.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/SecureIM/src/splitmsg.cpp
parent591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff)
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/SecureIM/src/splitmsg.cpp')
-rw-r--r--plugins/SecureIM/src/splitmsg.cpp6
1 files changed, 3 insertions, 3 deletions
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;
}
// отправляет сообщение, если надо то разбивает на части