diff options
author | crupest <crupest@outlook.com> | 2022-01-12 21:35:08 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-01-12 21:35:08 +0800 |
commit | 7a42d92c10a4bc686244668dd0e3f903f30f2fae (patch) | |
tree | e48fc4a47afa5eadbdf54cec6d2b73110f500680 /src/win/DebugLogger.hpp | |
parent | 882d843083895f4905571dc273e801ee18fd5984 (diff) | |
download | cru-7a42d92c10a4bc686244668dd0e3f903f30f2fae.tar.gz cru-7a42d92c10a4bc686244668dd0e3f903f30f2fae.tar.bz2 cru-7a42d92c10a4bc686244668dd0e3f903f30f2fae.zip |
...
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 |