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. --- src/base/platform/win/DebugLogTarget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/base/platform/win/DebugLogTarget.cpp') 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(m.c_str())); } } // namespace cru::platform::win -- cgit v1.2.3