aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2018-01-23 15:28:20 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2018-01-23 15:28:20 -0800
commit9d85ed4c17bd871cfc4b267c3231fc207f4f0006 (patch)
treeb9a56c2620e054ac7632d5a5fe81cce7a8f693f4 /toolsrc/src
parentbbf1a737b6da91a452d93579b5162bd7c6239316 (diff)
downloadvcpkg-9d85ed4c17bd871cfc4b267c3231fc207f4f0006.tar.gz
vcpkg-9d85ed4c17bd871cfc4b267c3231fc207f4f0006.zip
Use char instead of string when string-searching for a single char
Diffstat (limited to 'toolsrc/src')
-rw-r--r--toolsrc/src/vcpkg/commands.hash.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/toolsrc/src/vcpkg/commands.hash.cpp b/toolsrc/src/vcpkg/commands.hash.cpp
index 1e3e5b23d..fa3d80f27 100644
--- a/toolsrc/src/vcpkg/commands.hash.cpp
+++ b/toolsrc/src/vcpkg/commands.hash.cpp
@@ -7,7 +7,7 @@
namespace vcpkg::Commands::Hash
{
- static void do_file_hash(fs::path const &cmake_exe_path, fs::path const& path, std::string const& hash_type)
+ static void do_file_hash(fs::path const& cmake_exe_path, fs::path const& path, std::string const& hash_type)
{
const std::string cmd_line = Strings::format(
R"("%s" -E %ssum %s)", cmake_exe_path.u8string(), Strings::ascii_to_lowercase(hash_type), path.u8string());
@@ -17,7 +17,7 @@ namespace vcpkg::Commands::Hash
std::string const& output = ec_data.output;
- const auto start = output.find_first_of(" ");
+ const auto start = output.find_first_of(' ');
Checks::check_exit(
VCPKG_LINE_INFO, start != std::string::npos, "Unexpected output format from command: %s", cmd_line);