aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-03-28 12:40:27 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-03-28 18:48:03 -0700
commit8aa6f78e3c789f94499c9c51aa11857d119ab1bf (patch)
tree51021d51dc28bdd52bea04ca242ff7e6a800270b /toolsrc/src
parent2b05e401d18bf0e7efc3475583486d6c42e8ad6e (diff)
downloadvcpkg-8aa6f78e3c789f94499c9c51aa11857d119ab1bf.tar.gz
vcpkg-8aa6f78e3c789f94499c9c51aa11857d119ab1bf.zip
Remove unneeded calls to c_str()
Diffstat (limited to 'toolsrc/src')
-rw-r--r--toolsrc/src/commands_hash.cpp2
-rw-r--r--toolsrc/src/commands_update.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/toolsrc/src/commands_hash.cpp b/toolsrc/src/commands_hash.cpp
index ea6977070..092b05bd1 100644
--- a/toolsrc/src/commands_hash.cpp
+++ b/toolsrc/src/commands_hash.cpp
@@ -7,7 +7,7 @@ namespace vcpkg::Commands::Hash
static void do_file_hash(fs::path const& path, std::wstring const& hashType)
{
auto cmd_line = Strings::wformat(LR"(CertUtil.exe -hashfile "%s" %s)",
- path.c_str(), hashType.c_str());
+ path.c_str(), hashType);
auto ec_data = System::cmd_execute_and_capture_output(cmd_line);
Checks::check_exit(VCPKG_LINE_INFO, ec_data.exit_code == 0, "Running command:\n %s\n failed", Strings::utf16_to_utf8(cmd_line));
diff --git a/toolsrc/src/commands_update.cpp b/toolsrc/src/commands_update.cpp
index 57ee7b616..4dbedff05 100644
--- a/toolsrc/src/commands_update.cpp
+++ b/toolsrc/src/commands_update.cpp
@@ -50,7 +50,7 @@ namespace vcpkg::Commands::Update
System::println("The following packages differ from their port versions:");
for (auto&& package : packages_output)
{
- System::println(" %s", package.c_str());
+ System::println(" %s", package);
}
System::println("\nTo update these packages, run\n vcpkg remove --purge <pkgs>...\n vcpkg install <pkgs>...");
}