From 7a42d92c10a4bc686244668dd0e3f903f30f2fae Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 12 Jan 2022 21:35:08 +0800 Subject: ... --- src/win/DebugLogger.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/win/DebugLogger.hpp') diff --git a/src/win/DebugLogger.hpp b/src/win/DebugLogger.hpp index 598ee9e8..5e78af22 100644 --- a/src/win/DebugLogger.hpp +++ b/src/win/DebugLogger.hpp @@ -13,10 +13,11 @@ class WinDebugLoggerSource : public ::cru::log::ILogSource { ~WinDebugLoggerSource() = default; - void Write(::cru::log::LogLevel level, const std::u16string& s) override { + void Write(::cru::log::LogLevel level, StringView s) override { CRU_UNUSED(level) - ::OutputDebugStringW(reinterpret_cast(s.c_str())); + String m = s.ToString(); + ::OutputDebugStringW(reinterpret_cast(m.c_str())); } }; } // namespace cru::platform::win -- cgit v1.2.3