aboutsummaryrefslogtreecommitdiff
path: root/src/base/platform/win/DebugLogTarget.cpp
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-11-18 21:25:44 +0800
committerYuqian Yang <crupest@crupest.life>2025-11-18 21:25:44 +0800
commitdf2dadbd0f0ace6e02281c84218537ec2ce5c47f (patch)
tree56a360c16c4ba46658572305d3a444fb30d32272 /src/base/platform/win/DebugLogTarget.cpp
parent3648f669cb42cdd9d232d60c8b9715dfbbe5b31a (diff)
downloadcru-df2dadbd0f0ace6e02281c84218537ec2ce5c47f.tar.gz
cru-df2dadbd0f0ace6e02281c84218537ec2ce5c47f.tar.bz2
cru-df2dadbd0f0ace6e02281c84218537ec2ce5c47f.zip
Add overload of string_view for string utils. clean up codes.
Diffstat (limited to 'src/base/platform/win/DebugLogTarget.cpp')
-rw-r--r--src/base/platform/win/DebugLogTarget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/platform/win/DebugLogTarget.cpp b/src/base/platform/win/DebugLogTarget.cpp
index 3b73b332..d6dc1d95 100644
--- a/src/base/platform/win/DebugLogTarget.cpp
+++ b/src/base/platform/win/DebugLogTarget.cpp
@@ -6,7 +6,7 @@ namespace cru::platform::win {
void WinDebugLogTarget::Write(::cru::log::LogLevel level, std::string s) {
CRU_UNUSED(level)
- std::wstring m = string::ToUtf16(s);
+ std::wstring m = string::ToUtf16WString(s);
::OutputDebugStringW(reinterpret_cast<const wchar_t*>(m.c_str()));
}
} // namespace cru::platform::win