diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-11-18 21:25:44 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-11-18 21:25:44 +0800 |
| commit | df2dadbd0f0ace6e02281c84218537ec2ce5c47f (patch) | |
| tree | 56a360c16c4ba46658572305d3a444fb30d32272 /test/base/platform/win/StreamTest.cpp | |
| parent | 3648f669cb42cdd9d232d60c8b9715dfbbe5b31a (diff) | |
| download | cru-df2dadbd0f0ace6e02281c84218537ec2ce5c47f.tar.gz cru-df2dadbd0f0ace6e02281c84218537ec2ce5c47f.tar.bz2 cru-df2dadbd0f0ace6e02281c84218537ec2ce5c47f.zip | |
Add overload of string_view for string utils. clean up codes.
Diffstat (limited to 'test/base/platform/win/StreamTest.cpp')
| -rw-r--r-- | test/base/platform/win/StreamTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
