Use emplace_back() instead of push_back()

This commit is contained in:
Alexander Karatarakis 2018-01-23 15:23:21 -08:00
parent 80f1563c6b
commit 2f6e549223

View File

@ -34,7 +34,7 @@ namespace vcpkg::Commands::Create
R"(Filename cannot contain invalid chars %s, but was %s)",
Files::FILESYSTEM_INVALID_CHARACTERS,
zip_file_name);
cmake_args.push_back({"FILENAME", zip_file_name});
cmake_args.emplace_back("FILENAME", zip_file_name);
}
const std::string cmd_launch_cmake = make_cmake_cmd(cmake_exe, paths.ports_cmake, cmake_args);