diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2016-12-12 15:03:36 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2016-12-12 15:03:36 -0800 |
| commit | b629cd904440c640b7e5b4c3fdf17df5aac90bad (patch) | |
| tree | f4b1341687cd6166755ea052c31bf9272f09d4e8 /toolsrc/include | |
| parent | d02fe9bdae3553660896d14ef24c2b6dc82bb6db (diff) | |
| download | vcpkg-b629cd904440c640b7e5b4c3fdf17df5aac90bad.tar.gz vcpkg-b629cd904440c640b7e5b4c3fdf17df5aac90bad.zip | |
[vcpkg_cmd_arguments] Use std::string instead of char*
Diffstat (limited to 'toolsrc/include')
| -rw-r--r-- | toolsrc/include/vcpkg_cmd_arguments.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toolsrc/include/vcpkg_cmd_arguments.h b/toolsrc/include/vcpkg_cmd_arguments.h index 95feb4814..2194e6d2c 100644 --- a/toolsrc/include/vcpkg_cmd_arguments.h +++ b/toolsrc/include/vcpkg_cmd_arguments.h @@ -24,11 +24,11 @@ namespace vcpkg std::unordered_set<std::string> check_and_get_optional_command_arguments(const std::vector<std::string>& valid_options) const; void check_max_arg_count(const size_t expected_arg_count) const; - void check_max_arg_count(const size_t expected_arg_count, const char* example_text) const; + void check_max_arg_count(const size_t expected_arg_count, const std::string& example_text) const; void check_min_arg_count(const size_t expected_arg_count) const; - void check_min_arg_count(const size_t expected_arg_count, const char* example_text) const; + void check_min_arg_count(const size_t expected_arg_count, const std::string& example_text) const; void check_exact_arg_count(const size_t expected_arg_count) const; - void check_exact_arg_count(const size_t expected_arg_count, const char* example_text) const; + void check_exact_arg_count(const size_t expected_arg_count, const std::string& example_text) const; private: std::unordered_set<std::string> optional_command_arguments; |
