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/SMS/src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/SMS/src/main.cpp') diff --git a/plugins/SMS/src/main.cpp b/plugins/SMS/src/main.cpp index 839b2dc395..c62edf3376 100644 --- a/plugins/SMS/src/main.cpp +++ b/plugins/SMS/src/main.cpp @@ -67,7 +67,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID) break; case DLL_PROCESS_DETACH: HeapDestroy(ssSMSSettings.hHeap); - ssSMSSettings.hHeap = NULL; + ssSMSSettings.hHeap = nullptr; case DLL_THREAD_ATTACH: case DLL_THREAD_DETACH: break; @@ -119,17 +119,17 @@ void VersionConversions() { WCHAR wsztm[MAX_PATH]; - if (DB_SMS_GetStaticStringW(NULL,"UseSignature",wsztm,_countof(wsztm),NULL)) + if (DB_SMS_GetStaticStringW(NULL,"UseSignature",wsztm,_countof(wsztm),nullptr)) DB_SMS_SetByte(NULL,"UseSignature",(wsztm[0]=='0')); else DB_SMS_SetByte(NULL,"UseSignature",SMS_DEFAULT_USESIGNATURE); - if (DB_SMS_GetStaticStringW(NULL,"SignaturePos",wsztm,_countof(wsztm),NULL)) + if (DB_SMS_GetStaticStringW(NULL,"SignaturePos",wsztm,_countof(wsztm),nullptr)) DB_SMS_SetByte(NULL,"SignaturePos",(wsztm[0]=='0')); else DB_SMS_SetByte(NULL,"SignaturePos",SMS_DEFAULT_SIGNATUREPOS); - if (DB_SMS_GetStaticStringW(NULL,"ShowACK",wsztm,_countof(wsztm),NULL)) + if (DB_SMS_GetStaticStringW(NULL,"ShowACK",wsztm,_countof(wsztm),nullptr)) DB_SMS_SetByte(NULL,"ShowACK",(wsztm[0]=='0')); else DB_SMS_SetByte(NULL,"ShowACK",SMS_DEFAULT_SHOWACK); -- cgit v1.2.3