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 /include/cru/ui/UiEvent.hpp | |
parent | bbec59718bf8a824583869126762013112f8e568 (diff) | |
download | cru-5c805e494425a88da1813902b1ad8a1ab351e30d.tar.gz cru-5c805e494425a88da1813902b1ad8a1ab351e30d.tar.bz2 cru-5c805e494425a88da1813902b1ad8a1ab351e30d.zip |
...
Diffstat (limited to 'include/cru/ui/UiEvent.hpp')
-rw-r--r-- | include/cru/ui/UiEvent.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/cru/ui/UiEvent.hpp b/include/cru/ui/UiEvent.hpp index 39f26aee..5adace8a 100644 --- a/include/cru/ui/UiEvent.hpp +++ b/include/cru/ui/UiEvent.hpp @@ -212,7 +212,7 @@ class KeyEventArgs : public UiEventArgs { class CharEventArgs : public UiEventArgs { public: - CharEventArgs(Object* sender, Object* original_sender, std::string c) + CharEventArgs(Object* sender, Object* original_sender, std::u16string c) : UiEventArgs(sender, original_sender), c_(std::move(c)) {} CharEventArgs(const CharEventArgs& other) = default; CharEventArgs(CharEventArgs&& other) = default; @@ -220,9 +220,9 @@ class CharEventArgs : public UiEventArgs { CharEventArgs& operator=(CharEventArgs&& other) = default; ~CharEventArgs() override = default; - std::string GetChar() const { return c_; } + std::u16string GetChar() const { return c_; } private: - std::string c_; + std::u16string c_; }; } // namespace cru::ui::event |