From 3b875091c445b7465b9bd044914318989a94d2ad Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 21 Nov 2025 21:43:42 +0800 Subject: Clean codes. Remove member function const. --- include/cru/ui/components/Select.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/cru/ui/components/Select.h') diff --git a/include/cru/ui/components/Select.h b/include/cru/ui/components/Select.h index 9efe9a04..67b18383 100644 --- a/include/cru/ui/components/Select.h +++ b/include/cru/ui/components/Select.h @@ -13,10 +13,10 @@ class CRU_UI_API Select : public Component { public: ui::controls::Control* GetRootControl() override { return &button_; } - std::vector GetItems() const { return items_; } + std::vector GetItems() { return items_; } void SetItems(std::vector items); - Index GetSelectedIndex() const { return selected_index_; } + Index GetSelectedIndex() { return selected_index_; } void SetSelectedIndex(Index index); IEvent* ItemSelectedEvent() { return &item_selected_event_; } -- cgit v1.2.3