summaryrefslogtreecommitdiff
path: root/plugins/UserGuide/src
diff options
context:
space:
mode:
authorGoraf <22941576+Goraf@users.noreply.github.com>2017-11-13 15:03:31 +0100
committerGoraf <22941576+Goraf@users.noreply.github.com>2017-11-13 15:07:33 +0100
commita7c24ca48995cf2bf436156302f96b91bf135409 (patch)
tree953835509ff1b778833e78fd7b74b05e05e77c84 /plugins/UserGuide/src
parent591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff)
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/UserGuide/src')
-rw-r--r--plugins/UserGuide/src/main.cpp6
1 files changed, 3 insertions, 3 deletions
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;