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/CmdLine/src/services.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/CmdLine/src/services.cpp') 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; -- cgit v1.2.3