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] --- protocols/WhatsApp/src/utils.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols/WhatsApp/src/utils.cpp') diff --git a/protocols/WhatsApp/src/utils.cpp b/protocols/WhatsApp/src/utils.cpp index 7ae1c8fcfa..d335133912 100644 --- a/protocols/WhatsApp/src/utils.cpp +++ b/protocols/WhatsApp/src/utils.cpp @@ -2,8 +2,8 @@ wchar_t* utils::removeA(wchar_t *str) { - if (str == NULL) - return NULL; + if (str == nullptr) + return nullptr; wchar_t *p = wcschr(str, '@'); if (p) *p = 0; @@ -34,11 +34,11 @@ std::string getLastErrorMsg() FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, - NULL, + nullptr, dw, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPSTR)&lpMsgBuf, - 0, NULL); + 0, nullptr); std::string ret((LPSTR)lpMsgBuf); LocalFree(lpMsgBuf); -- cgit v1.2.3