aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/commands_install.cpp
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-04-13 16:51:32 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-04-14 14:31:44 -0700
commitfbc8b86426222a82c424d26c9f7a21dca95e260c (patch)
tree6bdbb5a21d09527dcb9c09d65ccd8cfc11297f75 /toolsrc/src/commands_install.cpp
parentb3541eff15847b2cc90736a609b8c6f99ce74a9d (diff)
downloadvcpkg-fbc8b86426222a82c424d26c9f7a21dca95e260c.tar.gz
vcpkg-fbc8b86426222a82c424d26c9f7a21dca95e260c.zip
Use Strings::join()
Diffstat (limited to 'toolsrc/src/commands_install.cpp')
-rw-r--r--toolsrc/src/commands_install.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/toolsrc/src/commands_install.cpp b/toolsrc/src/commands_install.cpp
index 034a4c88e..31d271141 100644
--- a/toolsrc/src/commands_install.cpp
+++ b/toolsrc/src/commands_install.cpp
@@ -254,12 +254,7 @@ namespace vcpkg::Commands::Install
Checks::check_exit(VCPKG_LINE_INFO, !install_plan.empty(), "Install plan cannot be empty");
// log the plan
- std::string specs_string = install_plan[0].spec.to_string();
- for (size_t i = 1; i < install_plan.size(); ++i)
- {
- specs_string.push_back(',');
- specs_string.append(install_plan[i].spec.to_string());
- }
+ const std::string specs_string = Strings::join(",", install_plan, [](const InstallPlanAction& plan) {return plan.spec.to_string(); });
Metrics::track_property("installplan", specs_string);
print_plan(install_plan);