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/SplashScreen/src/options.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/SplashScreen/src/options.cpp') diff --git a/plugins/SplashScreen/src/options.cpp b/plugins/SplashScreen/src/options.cpp index b4c51f74a8..52ee655d78 100644 --- a/plugins/SplashScreen/src/options.cpp +++ b/plugins/SplashScreen/src/options.cpp @@ -171,7 +171,7 @@ INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP if (Exists(szSplashFile)) { mir_wstrcpy(initDir, szSplashFile); wchar_t *pos = wcsrchr(initDir, '\\'); - if (pos != NULL) + if (pos != nullptr) *pos = 0; } else { @@ -205,7 +205,7 @@ INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP if (result && mir_wstrlen(szPath2Spash) > 0) { if (options.random) { wchar_t *pos = wcsrchr(szPath2Spash, '\\'); - if (pos != NULL) { + if (pos != nullptr) { *pos = 0; mir_wstrcat(szPath2Spash, L"\\"); } @@ -228,7 +228,7 @@ INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP if (Exists(szSoundFile)) { mir_wstrcpy(initDir, szSoundFile); pos = wcsrchr(initDir, '\\'); - if (pos != NULL) *pos = 0; + if (pos != nullptr) *pos = 0; } else { szMirDir = Utils_ReplaceVarsW(L"%miranda_path%"); @@ -241,7 +241,7 @@ INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP wchar_t tmp[MAX_PATH]; mir_snwprintf(tmp, L"%s (*.wav, *.mp3)%c*.wav;*.mp3%c%c", TranslateT("Sound Files"), 0, 0, 0); ofn.lpstrFilter = tmp; - ofn.hwndOwner = 0; + ofn.hwndOwner = nullptr; ofn.lpstrFile = szTempPath; ofn.nMaxFile = MAX_PATH; ofn.nMaxFileTitle = MAX_PATH; -- cgit v1.2.3