aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-10-08 14:11:44 +0800
committercrupest <crupest@outlook.com>2020-10-08 14:11:44 +0800
commita1f950e2b3b2268b267e647205b14b59c15f8ee1 (patch)
tree914faf4cf39bdd687203b28dad6bffb2c6a83649 /src
parent937b16dff40b6eba68d6bc13162f838c8432f43b (diff)
downloadcru-a1f950e2b3b2268b267e647205b14b59c15f8ee1.tar.gz
cru-a1f950e2b3b2268b267e647205b14b59c15f8ee1.tar.bz2
cru-a1f950e2b3b2268b267e647205b14b59c15f8ee1.zip
...
Diffstat (limited to 'src')
-rw-r--r--src/ui/UiHost.cpp2
-rw-r--r--src/ui/controls/TextControlService.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/UiHost.cpp b/src/ui/UiHost.cpp
index 5451ebce..d8dcb6da 100644
--- a/src/ui/UiHost.cpp
+++ b/src/ui/UiHost.cpp
@@ -16,7 +16,7 @@ using platform::native::IUiApplication;
namespace event_names {
#ifdef CRU_DEBUG
// clang-format off
-#define CRU_DEFINE_EVENT_NAME(name) constexpr const char16_t* name = u#name;
+#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"";
diff --git a/src/ui/controls/TextControlService.hpp b/src/ui/controls/TextControlService.hpp
index 5e423d7d..5d8d4645 100644
--- a/src/ui/controls/TextControlService.hpp
+++ b/src/ui/controls/TextControlService.hpp
@@ -199,7 +199,7 @@ class TextControlService : public Object {
}
template <typename TArgs>
- void SetupOneHandler(event::RoutedEvent<TArgs>* (TControl::*event)(),
+ void SetupOneHandler(event::RoutedEvent<TArgs>* (Control::*event)(),
void (TextControlService::*handler)(
typename event::RoutedEvent<TArgs>::EventArgs)) {
this->event_revoker_guards_.push_back(