Use nullptr instead of NULL

pull/10200/head
tony 2 years ago
parent a34d060773
commit efa2b29058
  1. 2
      src/google/protobuf/compiler/subprocess.cc

@ -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

Loading…
Cancel
Save