aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/components/Select.h
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-11-21 21:43:42 +0800
committerYuqian Yang <crupest@crupest.life>2025-11-21 21:43:42 +0800
commit3b875091c445b7465b9bd044914318989a94d2ad (patch)
treea358aebb488ec1ddc86bf87b8038bacd5d7515cb /include/cru/ui/components/Select.h
parent3cda35dbcbbe1e3854b880169c0efa0fc7a79264 (diff)
downloadcru-3b875091c445b7465b9bd044914318989a94d2ad.tar.gz
cru-3b875091c445b7465b9bd044914318989a94d2ad.tar.bz2
cru-3b875091c445b7465b9bd044914318989a94d2ad.zip
Clean codes. Remove member function const.
Diffstat (limited to 'include/cru/ui/components/Select.h')
-rw-r--r--include/cru/ui/components/Select.h4
1 files changed, 2 insertions, 2 deletions
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<std::string> GetItems() const { return items_; }
+ std::vector<std::string> GetItems() { return items_; }
void SetItems(std::vector<std::string> items);
- Index GetSelectedIndex() const { return selected_index_; }
+ Index GetSelectedIndex() { return selected_index_; }
void SetSelectedIndex(Index index);
IEvent<Index>* ItemSelectedEvent() { return &item_selected_event_; }