From c2e54fa87f981cb88b5131875caa4ed74b6988cf Mon Sep 17 00:00:00 2001 From: jrp2014 Date: Thu, 5 Apr 2018 08:12:15 +0200 Subject: [PATCH] Refactor cli/cppcheckexecutor.cpp --- cli/cppcheckexecutor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/cppcheckexecutor.cpp b/cli/cppcheckexecutor.cpp index 2b0a2ba7f..2febae141 100644 --- a/cli/cppcheckexecutor.cpp +++ b/cli/cppcheckexecutor.cpp @@ -581,7 +581,7 @@ namespace { const HANDLE hThread = GetCurrentThread(); BOOL result = pSymInitialize( hProcess, - 0, + nullptr, TRUE ); CONTEXT context = *(ex->ContextRecord); @@ -642,7 +642,7 @@ namespace { } FreeLibrary(hLibDbgHelp); - hLibDbgHelp=0; + hLibDbgHelp=nullptr; } void writeMemoryErrorDetails(FILE* outputFile, PEXCEPTION_POINTERS ex, const char* description) @@ -963,7 +963,7 @@ static inline std::string ansiToOEM(const std::string &msg, bool doConvert) // ansi code page characters to wide characters MultiByteToWideChar(CP_ACP, 0, msg.data(), msglength, wcContainer.data(), msglength); // wide characters to oem codepage characters - WideCharToMultiByte(CP_OEMCP, 0, wcContainer.data(), msglength, const_cast(result.data()), msglength, NULL, NULL); + WideCharToMultiByte(CP_OEMCP, 0, wcContainer.data(), msglength, const_cast(result.data()), msglength, nullptr, nullptr); return result; // hope for return value optimization }