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/OpenFolder/src/openFolder.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/OpenFolder/src') diff --git a/plugins/OpenFolder/src/openFolder.cpp b/plugins/OpenFolder/src/openFolder.cpp index 4bb1a12aa4..97509a117b 100644 --- a/plugins/OpenFolder/src/openFolder.cpp +++ b/plugins/OpenFolder/src/openFolder.cpp @@ -30,15 +30,15 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID) static INT_PTR MenuCommand_OpenFolder(WPARAM, LPARAM) { wchar_t szMirandaPath[MAX_PATH]; - GetModuleFileName(GetModuleHandle(NULL), szMirandaPath, _countof(szMirandaPath)); + GetModuleFileName(GetModuleHandle(nullptr), szMirandaPath, _countof(szMirandaPath)); wchar_t *p = wcsrchr(szMirandaPath, '\\'); if (p) p[1] = 0; if ( GetAsyncKeyState( VK_CONTROL ) & 0x8000 ) - ShellExecute(0, L"explore", szMirandaPath, 0, 0, SW_SHOWNORMAL); + ShellExecute(nullptr, L"explore", szMirandaPath, nullptr, nullptr, SW_SHOWNORMAL); else - ShellExecute(0, L"open", szMirandaPath, 0, 0, SW_SHOWNORMAL); + ShellExecute(nullptr, L"open", szMirandaPath, nullptr, nullptr, SW_SHOWNORMAL); return 0; } @@ -46,7 +46,7 @@ static INT_PTR MenuCommand_OpenFolder(WPARAM, LPARAM) // toptoolbar (if plugin is installed) static int ToptoolBarHook(WPARAM, LPARAM) { - TTBButton ttb = { 0 }; + TTBButton ttb = {}; ttb.hIconHandleUp = icon.hIcolib; ttb.pszService = MS_OPENFOLDER_OPEN; ttb.dwFlags = TTBBF_VISIBLE | TTBBF_SHOWTOOLTIP; -- cgit v1.2.3