aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/vcpkg.cpp
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2016-12-13 19:02:02 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2016-12-13 19:02:02 -0800
commitb1681d0838fdc3a3bd361e5678d23d2376a3edbd (patch)
treee55f74fd8aa7065eddd78bc20d11381fc5093b6f /toolsrc/src/vcpkg.cpp
parentc9b310c16528c907ab12bcc5ec9a0f5795ebf29f (diff)
downloadvcpkg-b1681d0838fdc3a3bd361e5678d23d2376a3edbd.tar.gz
vcpkg-b1681d0838fdc3a3bd361e5678d23d2376a3edbd.zip
Avoid copying struct
Diffstat (limited to 'toolsrc/src/vcpkg.cpp')
-rw-r--r--toolsrc/src/vcpkg.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/toolsrc/src/vcpkg.cpp b/toolsrc/src/vcpkg.cpp
index 88b05b0a9..74b02e612 100644
--- a/toolsrc/src/vcpkg.cpp
+++ b/toolsrc/src/vcpkg.cpp
@@ -161,8 +161,8 @@ std::vector<StatusParagraph_and_associated_files> vcpkg::get_installed_files(con
}),
installed_files_of_current_pgh.end());
- const StatusParagraph_and_associated_files pgh_and_files = {*pgh, std::move(installed_files_of_current_pgh)};
- installed_files.push_back(pgh_and_files);
+ StatusParagraph_and_associated_files pgh_and_files = {*pgh, std::move(installed_files_of_current_pgh)};
+ installed_files.push_back(std::move(pgh_and_files));
}
return installed_files;