summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ/src/log.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 /protocols/IcqOscarJ/src/log.cpp
parent591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff)
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'protocols/IcqOscarJ/src/log.cpp')
-rw-r--r--protocols/IcqOscarJ/src/log.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/IcqOscarJ/src/log.cpp b/protocols/IcqOscarJ/src/log.cpp
index 4688dbe1c4..c3c73afc4b 100644
--- a/protocols/IcqOscarJ/src/log.cpp
+++ b/protocols/IcqOscarJ/src/log.cpp
@@ -55,7 +55,7 @@ void __cdecl CIcqProto::icq_LogMessageThread(void* arg)
bErrorBoxVisible = TRUE;
if (err->szMsg && err->szTitle)
- MessageBoxUtf(NULL, err->szMsg, err->szTitle, MB_OK);
+ MessageBoxUtf(nullptr, err->szMsg, err->szTitle, MB_OK);
SAFE_FREE((void**)&err->szMsg);
SAFE_FREE((void**)&err);
bErrorBoxVisible = FALSE;
@@ -85,7 +85,7 @@ void CIcqProto::icq_LogUsingErrorCode(int level, DWORD dwError, const char *szMs
char str[1024];
char str2[64];
char szErrorMsg[512];
- char *pszErrorMsg = NULL;
+ char *pszErrorMsg = nullptr;
int bNeedFree = FALSE;
switch (dwError) {
@@ -120,7 +120,7 @@ void CIcqProto::icq_LogUsingErrorCode(int level, DWORD dwError, const char *szMs
default:
wchar_t err[512];
- if (FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, dwError, 0, err, _countof(err), NULL)) {
+ if (FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, nullptr, dwError, 0, err, _countof(err), nullptr)) {
pszErrorMsg = make_utf8_string(err);
bNeedFree = TRUE;
}