From df2dadbd0f0ace6e02281c84218537ec2ce5c47f Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Tue, 18 Nov 2025 21:25:44 +0800 Subject: Add overload of string_view for string utils. clean up codes. --- test/base/platform/win/StreamTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/base/platform/win/StreamTest.cpp') diff --git a/test/base/platform/win/StreamTest.cpp b/test/base/platform/win/StreamTest.cpp index e1a6e4fe..f42fc5c2 100644 --- a/test/base/platform/win/StreamTest.cpp +++ b/test/base/platform/win/StreamTest.cpp @@ -16,7 +16,7 @@ TEST_CASE("StreamConvert FileStreamWork", "[stream]") { .native(); _wmktemp(temp_file_path.data()); - std::string path = string::ToUtf8(temp_file_path); + std::string path = string::ToUtf8String(temp_file_path); ComStream file(path, OpenFileFlags::Write | OpenFileFlags::Create); file.Write("abc", 3); @@ -46,7 +46,7 @@ TEST_CASE("ComStream Work", "[stream]") { .native(); _wmktemp(temp_file_path.data()); - std::string path = string::ToUtf8(temp_file_path); + std::string path = string::ToUtf8String(temp_file_path); ComStream file(path, OpenFileFlags::Write | OpenFileFlags::Create); auto write_count = file.Write("abc", 3); -- cgit v1.2.3