aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/commands_portsdiff.cpp
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-05-04 14:54:23 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-05-04 14:54:23 -0700
commita94efe662b0537a606d40bdd4b986b5b2ea246e2 (patch)
treef741d6b99225c7bda5fb7b349a1a5bf3ac50ab9d /toolsrc/src/commands_portsdiff.cpp
parentf920d0e5208a75dcb14ac4fcb5b7c83edbaab861 (diff)
downloadvcpkg-a94efe662b0537a606d40bdd4b986b5b2ea246e2.tar.gz
vcpkg-a94efe662b0537a606d40bdd4b986b5b2ea246e2.zip
Rename Strings:: function for utf8/utf16 conversion
Diffstat (limited to 'toolsrc/src/commands_portsdiff.cpp')
-rw-r--r--toolsrc/src/commands_portsdiff.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/toolsrc/src/commands_portsdiff.cpp b/toolsrc/src/commands_portsdiff.cpp
index 996d41f92..a614d654e 100644
--- a/toolsrc/src/commands_portsdiff.cpp
+++ b/toolsrc/src/commands_portsdiff.cpp
@@ -114,7 +114,7 @@ namespace vcpkg::Commands::PortsDiff
Checks::check_exit(VCPKG_LINE_INFO,
output.output == VALID_COMMIT_OUTPUT,
"Invalid commit id %s",
- Strings::utf16_to_utf8(git_commit_id));
+ Strings::to_utf8(git_commit_id));
}
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths)
@@ -128,9 +128,9 @@ namespace vcpkg::Commands::PortsDiff
const fs::path& git_exe = paths.get_git_exe();
- const std::wstring git_commit_id_for_previous_snapshot = Strings::utf8_to_utf16(args.command_arguments.at(0));
+ const std::wstring git_commit_id_for_previous_snapshot = Strings::to_utf16(args.command_arguments.at(0));
const std::wstring git_commit_id_for_current_snapshot =
- args.command_arguments.size() < 2 ? L"HEAD" : Strings::utf8_to_utf16(args.command_arguments.at(1));
+ args.command_arguments.size() < 2 ? L"HEAD" : Strings::to_utf16(args.command_arguments.at(1));
check_commit_exists(git_exe, git_commit_id_for_current_snapshot);
check_commit_exists(git_exe, git_commit_id_for_previous_snapshot);