aboutsummaryrefslogtreecommitdiff
path: root/src/base/platform/win/DebugLogTarget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/platform/win/DebugLogTarget.cpp')
-rw-r--r--src/base/platform/win/DebugLogTarget.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/base/platform/win/DebugLogTarget.cpp b/src/base/platform/win/DebugLogTarget.cpp
index 89bd3d19..afbab620 100644
--- a/src/base/platform/win/DebugLogTarget.cpp
+++ b/src/base/platform/win/DebugLogTarget.cpp
@@ -1,10 +1,12 @@
#include "cru/base/platform/win/DebugLogTarget.h"
+#include "cru/base/String.h"
+
namespace cru::platform::win {
-void WinDebugLogTarget::Write(::cru::log::LogLevel level, StringView s) {
+void WinDebugLogTarget::Write(::cru::log::LogLevel level, std::string s) {
CRU_UNUSED(level)
- String m = s.ToString();
+ String m = String::FromUtf8(s);
::OutputDebugStringW(reinterpret_cast<const wchar_t*>(m.c_str()));
}
} // namespace cru::platform::win