From efa2b29058bd1553e2ad9f95b0abdd46853f6ab7 Mon Sep 17 00:00:00 2001 From: tony Date: Mon, 4 Jul 2022 14:58:44 +0100 Subject: [PATCH] Use nullptr instead of NULL --- src/google/protobuf/compiler/subprocess.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/protobuf/compiler/subprocess.cc b/src/google/protobuf/compiler/subprocess.cc index a50cb5694b..6f547db795 100644 --- a/src/google/protobuf/compiler/subprocess.cc +++ b/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