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 }