aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2018-01-23 15:23:21 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2018-01-23 15:23:21 -0800
commit2f6e549223021b446b6b5c2942c665ee9a4b91d7 (patch)
treec0f4ccabb169b9e93b91fdba10cc916c5bec7d21
parent80f1563c6b6204d09b750944433d51047c46afba (diff)
downloadvcpkg-2f6e549223021b446b6b5c2942c665ee9a4b91d7.tar.gz
vcpkg-2f6e549223021b446b6b5c2942c665ee9a4b91d7.zip
Use emplace_back() instead of push_back()
-rw-r--r--toolsrc/src/vcpkg/commands.create.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolsrc/src/vcpkg/commands.create.cpp b/toolsrc/src/vcpkg/commands.create.cpp
index 44f5f7928..25c34cf09 100644
--- a/toolsrc/src/vcpkg/commands.create.cpp
+++ b/toolsrc/src/vcpkg/commands.create.cpp
@@ -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);