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/UserGuide/src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/UserGuide/src') diff --git a/plugins/UserGuide/src/main.cpp b/plugins/UserGuide/src/main.cpp index 97641a2370..de77c75a9d 100644 --- a/plugins/UserGuide/src/main.cpp +++ b/plugins/UserGuide/src/main.cpp @@ -25,7 +25,7 @@ static INT_PTR ShowGuideFile(WPARAM, LPARAM) wchar_t *ptszHelpFile = db_get_wsa(NULL, "UserGuide", "PathToHelpFile"); - if (ptszHelpFile==0) + if (ptszHelpFile==nullptr) { mir_wstrcpy(pszDirName, L"%miranda_path%\\Plugins"); mir_wstrcpy(pszFileName, L"UserGuide.chm"); @@ -40,7 +40,7 @@ static INT_PTR ShowGuideFile(WPARAM, LPARAM) else { LPTSTR pszDivider = wcsrchr(ptszHelpFile, '\\'); - if (pszDivider == NULL) + if (pszDivider == nullptr) { mir_wstrcpy(pszDirName, L""); wcsncpy(pszFileName, ptszHelpFile, mir_wstrlen(ptszHelpFile)); @@ -59,7 +59,7 @@ static INT_PTR ShowGuideFile(WPARAM, LPARAM) pszDirNameEx = Utils_ReplaceVarsW(pszDirName); mir_free(pszDirName); - ShellExecute(NULL, L"open", pszFileName, NULL, pszDirNameEx, SW_SHOW); + ShellExecute(nullptr, L"open", pszFileName, nullptr, pszDirNameEx, SW_SHOW); mir_free(pszFileName); mir_free(pszDirNameEx); return 0; -- cgit v1.2.3