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/crypt_misc.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/SecureIM/src/crypt_misc.cpp') diff --git a/plugins/SecureIM/src/crypt_misc.cpp b/plugins/SecureIM/src/crypt_misc.cpp index dfda8a284a..8f60119b0b 100644 --- a/plugins/SecureIM/src/crypt_misc.cpp +++ b/plugins/SecureIM/src/crypt_misc.cpp @@ -17,7 +17,7 @@ static void sttWaitForExchange(LPVOID param) // if keyexchange failed or timeout if (ptr->waitForExchange == 1 || ptr->waitForExchange == 3) { // протухло - отправляем незашифрованно, если надо - if (ptr->msgQueue && msgbox1(0, sim104, MODULENAME, MB_YESNO | MB_ICONQUESTION) == IDYES) { + if (ptr->msgQueue && msgbox1(nullptr, sim104, MODULENAME, MB_YESNO | MB_ICONQUESTION) == IDYES) { mir_cslock lck(localQueueMutex); ptr->sendQueue = true; pWM ptrMessage = ptr->msgQueue; @@ -31,7 +31,7 @@ static void sttWaitForExchange(LPVOID param) ptrMessage = ptrMessage->nextMessage; mir_free(tmp); } - ptr->msgQueue = NULL; + ptr->msgQueue = nullptr; ptr->sendQueue = false; } ptr->waitForExchange = 0; @@ -51,7 +51,7 @@ static void sttWaitForExchange(LPVOID param) ptrMessage = ptrMessage->nextMessage; mir_free(tmp); } - ptr->msgQueue = NULL; + ptr->msgQueue = nullptr; ptr->waitForExchange = 0; } else if (ptr->waitForExchange == 0) { // очистить очередь @@ -64,7 +64,7 @@ static void sttWaitForExchange(LPVOID param) ptrMessage = ptrMessage->nextMessage; mir_free(tmp); } - ptr->msgQueue = NULL; + ptr->msgQueue = nullptr; } } -- cgit v1.2.3