aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/controls/Control.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/ui/controls/Control.hpp')
-rw-r--r--include/cru/ui/controls/Control.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cru/ui/controls/Control.hpp b/include/cru/ui/controls/Control.hpp
index ed6233a9..c51643be 100644
--- a/include/cru/ui/controls/Control.hpp
+++ b/include/cru/ui/controls/Control.hpp
@@ -67,7 +67,7 @@ class CRU_UI_API Control : public Object {
void SetCursor(std::shared_ptr<platform::gui::ICursor> cursor);
public:
- style::StyleRuleSet* GetStyleRuleSet();
+ std::shared_ptr<style::StyleRuleSet> GetStyleRuleSet();
//*************** region: events ***************
public:
@@ -151,7 +151,7 @@ class CRU_UI_API Control : public Object {
std::shared_ptr<platform::gui::ICursor> cursor_ = nullptr;
- std::unique_ptr<style::StyleRuleSet> style_rule_set_;
+ std::shared_ptr<style::StyleRuleSet> style_rule_set_;
std::unique_ptr<style::StyleRuleSetBind> style_rule_set_bind_;
};
} // namespace cru::ui::controls