diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2018-01-23 15:23:21 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2018-01-23 15:23:21 -0800 |
| commit | 2f6e549223021b446b6b5c2942c665ee9a4b91d7 (patch) | |
| tree | c0f4ccabb169b9e93b91fdba10cc916c5bec7d21 | |
| parent | 80f1563c6b6204d09b750944433d51047c46afba (diff) | |
| download | vcpkg-2f6e549223021b446b6b5c2942c665ee9a4b91d7.tar.gz vcpkg-2f6e549223021b446b6b5c2942c665ee9a4b91d7.zip | |
Use emplace_back() instead of push_back()
| -rw-r--r-- | toolsrc/src/vcpkg/commands.create.cpp | 2 |
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); |
