diff options
author | crupest <crupest@outlook.com> | 2020-07-05 23:06:02 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-07-05 23:06:02 +0800 |
commit | 5c805e494425a88da1813902b1ad8a1ab351e30d (patch) | |
tree | be3cfd96dcac19db3e256d610d48b5083c489a6c /src/win/DebugLogger.hpp | |
parent | bbec59718bf8a824583869126762013112f8e568 (diff) | |
download | cru-5c805e494425a88da1813902b1ad8a1ab351e30d.tar.gz cru-5c805e494425a88da1813902b1ad8a1ab351e30d.tar.bz2 cru-5c805e494425a88da1813902b1ad8a1ab351e30d.zip |
...
Diffstat (limited to 'src/win/DebugLogger.hpp')
-rw-r--r-- | src/win/DebugLogger.hpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/win/DebugLogger.hpp b/src/win/DebugLogger.hpp index 4ca1567b..598ee9e8 100644 --- a/src/win/DebugLogger.hpp +++ b/src/win/DebugLogger.hpp @@ -1,7 +1,6 @@ #include "cru/win/WinPreConfig.hpp" #include "cru/common/Logger.hpp" -#include "cru/win/String.hpp" namespace cru::platform::win { @@ -14,11 +13,10 @@ class WinDebugLoggerSource : public ::cru::log::ILogSource { ~WinDebugLoggerSource() = default; - void Write(::cru::log::LogLevel level, std::string_view s) override { + void Write(::cru::log::LogLevel level, const std::u16string& s) override { CRU_UNUSED(level) - const std::wstring&& ws = ToUtf16String(s); - ::OutputDebugStringW(ws.data()); + ::OutputDebugStringW(reinterpret_cast<const wchar_t*>(s.c_str())); } }; } // namespace cru::platform::win |