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.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base/platform/win/DebugLogTarget.cpp b/src/base/platform/win/DebugLogTarget.cpp
index afbab620..3b73b332 100644
--- a/src/base/platform/win/DebugLogTarget.cpp
+++ b/src/base/platform/win/DebugLogTarget.cpp
@@ -1,12 +1,12 @@
#include "cru/base/platform/win/DebugLogTarget.h"
-#include "cru/base/String.h"
+#include "cru/base/StringUtil.h"
namespace cru::platform::win {
void WinDebugLogTarget::Write(::cru::log::LogLevel level, std::string s) {
CRU_UNUSED(level)
- String m = String::FromUtf8(s);
+ std::wstring m = string::ToUtf16(s);
::OutputDebugStringW(reinterpret_cast<const wchar_t*>(m.c_str()));
}
} // namespace cru::platform::win