aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/commands_installation.cpp
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2016-12-12 15:03:36 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2016-12-12 15:03:36 -0800
commitb629cd904440c640b7e5b4c3fdf17df5aac90bad (patch)
treef4b1341687cd6166755ea052c31bf9272f09d4e8 /toolsrc/src/commands_installation.cpp
parentd02fe9bdae3553660896d14ef24c2b6dc82bb6db (diff)
downloadvcpkg-b629cd904440c640b7e5b4c3fdf17df5aac90bad.tar.gz
vcpkg-b629cd904440c640b7e5b4c3fdf17df5aac90bad.zip
[vcpkg_cmd_arguments] Use std::string instead of char*
Diffstat (limited to 'toolsrc/src/commands_installation.cpp')
-rw-r--r--toolsrc/src/commands_installation.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/toolsrc/src/commands_installation.cpp b/toolsrc/src/commands_installation.cpp
index 1abd16796..c376d522f 100644
--- a/toolsrc/src/commands_installation.cpp
+++ b/toolsrc/src/commands_installation.cpp
@@ -216,7 +216,7 @@ namespace vcpkg
void install_command(const vcpkg_cmd_arguments& args, const vcpkg_paths& paths, const triplet& default_target_triplet)
{
static const std::string example = create_example_string("install zlib zlib:x64-windows curl boost");
- args.check_min_arg_count(1, example.c_str());
+ args.check_min_arg_count(1, example);
StatusParagraphs status_db = database_load_check(paths);
std::vector<package_spec> specs = Input::check_and_get_package_specs(args.command_arguments, default_target_triplet, example.c_str());
@@ -276,7 +276,7 @@ namespace vcpkg
// Installing multiple packages leads to unintuitive behavior if one of them depends on another.
// Allowing only 1 package for now.
- args.check_exact_arg_count(1, example.c_str());
+ args.check_exact_arg_count(1, example);
StatusParagraphs status_db = database_load_check(paths);
@@ -332,7 +332,7 @@ namespace vcpkg
void build_external_command(const vcpkg_cmd_arguments& args, const vcpkg_paths& paths, const triplet& default_target_triplet)
{
static const std::string example = create_example_string(R"(build_external zlib2 C:\path\to\dir\with\controlfile\)");
- args.check_exact_arg_count(2, example.c_str());
+ args.check_exact_arg_count(2, example);
expected<package_spec> maybe_current_spec = package_spec::from_string(args.command_arguments[0], default_target_triplet);
if (auto spec = maybe_current_spec.get())