Skip to content

Commit c2e54fa

Browse files
jrp2014danmar
authored andcommitted
Refactor cli/cppcheckexecutor.cpp
1 parent e65c63e commit c2e54fa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cli/cppcheckexecutor.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ namespace {
581581
const HANDLE hThread = GetCurrentThread();
582582
BOOL result = pSymInitialize(
583583
hProcess,
584-
0,
584+
nullptr,
585585
TRUE
586586
);
587587
CONTEXT context = *(ex->ContextRecord);
@@ -642,7 +642,7 @@ namespace {
642642
}
643643

644644
FreeLibrary(hLibDbgHelp);
645-
hLibDbgHelp=0;
645+
hLibDbgHelp=nullptr;
646646
}
647647

648648
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)
963963
// ansi code page characters to wide characters
964964
MultiByteToWideChar(CP_ACP, 0, msg.data(), msglength, wcContainer.data(), msglength);
965965
// wide characters to oem codepage characters
966-
WideCharToMultiByte(CP_OEMCP, 0, wcContainer.data(), msglength, const_cast<char *>(result.data()), msglength, NULL, NULL);
966+
WideCharToMultiByte(CP_OEMCP, 0, wcContainer.data(), msglength, const_cast<char *>(result.data()), msglength, nullptr, nullptr);
967967

968968
return result; // hope for return value optimization
969969
}

0 commit comments

Comments
 (0)