summaryrefslogtreecommitdiff
path: root/plugins/CmdLine/src/services.cpp
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/CmdLine/src/services.cpp
parent591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff)
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/CmdLine/src/services.cpp')
-rw-r--r--plugins/CmdLine/src/services.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/CmdLine/src/services.cpp b/plugins/CmdLine/src/services.cpp
index ae146cd8ef..5faff619b9 100644
--- a/plugins/CmdLine/src/services.cpp
+++ b/plugins/CmdLine/src/services.cpp
@@ -72,11 +72,11 @@ int StartServer()
{
if (sdCmdLine->instances == 0)
{
- HANDLE server = mir_forkthread(ServerWorkerThread, 0);
+ HANDLE server = mir_forkthread(ServerWorkerThread, nullptr);
if (server)
{
char path[MIMFOLDER_SIZE];
- GetModuleFileNameA(GetModuleHandle(NULL), path, sizeof(path));
+ GetModuleFileNameA(GetModuleHandle(nullptr), path, sizeof(path));
char *p = strrchr(path, '\\');
if (p) { *p = 0; }
strncpy_s(sdCmdLine->mimFolder, path, _TRUNCATE);
@@ -86,7 +86,7 @@ int StartServer()
}
else PUShowMessageT(TranslateT("Could not create CommandLine listening server!"), SM_WARNING);
}
- else MessageBox(NULL, TranslateT("You can only run one instance of CmdLine plugin."), TranslateT("Error"), MB_ICONERROR | MB_OK);
+ else MessageBox(nullptr, TranslateT("You can only run one instance of CmdLine plugin."), TranslateT("Error"), MB_ICONERROR | MB_OK);
}
return failure;