Remove unneeded calls to c_str()

This commit is contained in:
Alexander Karatarakis 2017-03-28 12:40:27 -07:00
parent 2b05e401d1
commit 8aa6f78e3c
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ namespace vcpkg::Commands::Hash
static void do_file_hash(fs::path const& path, std::wstring const& hashType) static void do_file_hash(fs::path const& path, std::wstring const& hashType)
{ {
auto cmd_line = Strings::wformat(LR"(CertUtil.exe -hashfile "%s" %s)", 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); 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)); Checks::check_exit(VCPKG_LINE_INFO, ec_data.exit_code == 0, "Running command:\n %s\n failed", Strings::utf16_to_utf8(cmd_line));

View File

@ -50,7 +50,7 @@ namespace vcpkg::Commands::Update
System::println("The following packages differ from their port versions:"); System::println("The following packages differ from their port versions:");
for (auto&& package : packages_output) 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>..."); System::println("\nTo update these packages, run\n vcpkg remove --purge <pkgs>...\n vcpkg install <pkgs>...");
} }