summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Clist_modern/src/modern_utils.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_utils.cpp12
1 files changed, 6 insertions, 6 deletions
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;
}