Skip to content

Commit

Permalink
Use nullptr instead of NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
tonydnewell committed Jul 4, 2022
1 parent a34d060 commit efa2b29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/google/protobuf/compiler/subprocess.cc
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ void Subprocess::Start(const std::string& program, SearchMode search_mode) {
// Create the process.
PROCESS_INFORMATION process_info;

if (CreateProcessW((search_mode == SEARCH_PATH) ? NULL : wprogram.c_str(),
if (CreateProcessW((search_mode == SEARCH_PATH) ? nullptr : wprogram.c_str(),
(search_mode == SEARCH_PATH) ? wcommand_line_copy : NULL,
nullptr, // process security attributes
nullptr, // thread security attributes
Expand Down

0 comments on commit efa2b29

Please sign in to comment.