aboutsummaryrefslogtreecommitdiff
path: root/src/ui/host
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/host')
-rw-r--r--src/ui/host/WindowHost.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/ui/host/WindowHost.cpp b/src/ui/host/WindowHost.cpp
index 59e383c5..88e8cc87 100644
--- a/src/ui/host/WindowHost.cpp
+++ b/src/ui/host/WindowHost.cpp
@@ -21,13 +21,8 @@ using platform::gui::INativeWindow;
using platform::gui::IUiApplication;
namespace event_names {
-#ifdef CRU_DEBUG
-// clang-format off
-#define CRU_DEFINE_EVENT_NAME(name) constexpr const char16_t* name = CRU_MAKE_UNICODE_LITERAL(name);
-// clang-format on
-#else
-#define CRU_DEFINE_EVENT_NAME(name) constexpr const char16_t* name = u"";
-#endif
+#define CRU_DEFINE_EVENT_NAME(name) \
+ constexpr const char16_t* name = CRU_MAKE_UNICODE_LITERAL(name);
CRU_DEFINE_EVENT_NAME(LoseFocus)
CRU_DEFINE_EVENT_NAME(GainFocus)
@@ -202,7 +197,8 @@ void WindowHost::RelayoutWithSize(const Size& available_size,
for (auto& action : after_layout_stable_action_) action();
after_layout_event_.Raise(AfterLayoutEventArgs{});
after_layout_stable_action_.clear();
- if constexpr (debug_flags::layout) CRU_LOG_TAG_DEBUG("A relayout is finished.");
+ if constexpr (debug_flags::layout)
+ CRU_LOG_TAG_DEBUG("A relayout is finished.");
}
void WindowHost::Repaint() {