diff options
Diffstat (limited to 'src/win/DebugLogger.hpp')
-rw-r--r-- | src/win/DebugLogger.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
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<const wchar_t*>(s.c_str())); + String m = s.ToString(); + ::OutputDebugStringW(reinterpret_cast<const wchar_t*>(m.c_str())); } }; } // namespace cru::platform::win |