From 25d3cbef4a3a8fa09151de730deb7fcda94ffe4d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 4 Sep 2017 22:22:27 +0300 Subject: Clist_Modern: - useless error message removed; - code cleaning; - version bump; --- plugins/Clist_modern/src/modern_utils.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/Clist_modern/src/modern_utils.cpp') diff --git a/plugins/Clist_modern/src/modern_utils.cpp b/plugins/Clist_modern/src/modern_utils.cpp index 07810bd37f..efbf5e77b3 100644 --- a/plugins/Clist_modern/src/modern_utils.cpp +++ b/plugins/Clist_modern/src/modern_utils.cpp @@ -20,7 +20,7 @@ char * __cdecl strstri(char *a, const char *b) } free(x); free(y); - return NULL; + return nullptr; } void TRACE_ERROR() @@ -31,18 +31,18 @@ void TRACE_ERROR() FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, - NULL, + nullptr, t, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language (LPTSTR)&lpMsgBuf, 0, - NULL)) + nullptr)) { // Handle the error. return; } #ifdef _DEBUG - MessageBox(NULL, (LPCTSTR)lpMsgBuf, L"Error", MB_OK | MB_ICONINFORMATION); + MessageBox(nullptr, (LPCTSTR)lpMsgBuf, L"Error", MB_OK | MB_ICONINFORMATION); DebugBreak(); #endif LocalFree(lpMsgBuf); @@ -54,8 +54,8 @@ HICON LoadSmallIcon(HINSTANCE hInstance, int index) wchar_t filename[MAX_PATH] = { 0 }; GetModuleFileName(hInstance, filename, MAX_PATH); - HICON hIcon = NULL; - ExtractIconEx(filename, index, NULL, &hIcon, 1); + HICON hIcon = nullptr; + ExtractIconEx(filename, index, nullptr, &hIcon, 1); return hIcon; } -- cgit v1.2.3