aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/controls/Button.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/ui/controls/Button.hpp')
-rw-r--r--include/cru/ui/controls/Button.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cru/ui/controls/Button.hpp b/include/cru/ui/controls/Button.hpp
index 1c9b1216..9e324c62 100644
--- a/include/cru/ui/controls/Button.hpp
+++ b/include/cru/ui/controls/Button.hpp
@@ -12,7 +12,7 @@ class Button : public ContentControl,
public virtual IClickableControl,
public virtual IBorderControl {
public:
- static constexpr std::u16string_view control_type = u"Button";
+ static constexpr StringView control_type = u"Button";
static Button* Create() { return new Button(); }
@@ -26,7 +26,7 @@ class Button : public ContentControl,
Button& operator=(Button&& other) = delete;
~Button() override;
- std::u16string_view GetControlType() const final { return control_type; }
+ String GetControlType() const final { return control_type.ToString(); }
render::RenderObject* GetRenderObject() const override;