From 5e8fa0b7bcdd8f4f1af2a61335df9a1c952dbbdf Mon Sep 17 00:00:00 2001 From: Vitaly Stakhovsky Date: Tue, 11 May 2021 11:20:00 -0400 Subject: Source: Minor code improvements --- Source/cmGlobalNMakeMakefileGenerator.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Source/cmGlobalNMakeMakefileGenerator.cxx') diff --git a/Source/cmGlobalNMakeMakefileGenerator.cxx b/Source/cmGlobalNMakeMakefileGenerator.cxx index 313f39b5e8..f08b1da36a 100644 --- a/Source/cmGlobalNMakeMakefileGenerator.cxx +++ b/Source/cmGlobalNMakeMakefileGenerator.cxx @@ -43,9 +43,7 @@ bool cmGlobalNMakeMakefileGenerator::FindMakeProgram(cmMakefile* mf) return false; } if (cmProp nmakeCommand = mf->GetDefinition("CMAKE_MAKE_PROGRAM")) { - std::vector command; - command.emplace_back(*nmakeCommand); - command.emplace_back("-?"); + std::vector command{ *nmakeCommand, "-?" }; std::string out; std::string err; if (!cmSystemTools::RunSingleCommand(command, &out, &err, nullptr, nullptr, -- cgit v1.2.1