diff --git a/frameworks/core/components/scroll/scroll_bar_theme.h b/frameworks/core/components/scroll/scroll_bar_theme.h index 3801ae1daa97fd95b0d171d1f703d35910ac94e7..74874ed9028ba41106d7df3be788b4b3d41f3b42 100644 --- a/frameworks/core/components/scroll/scroll_bar_theme.h +++ b/frameworks/core/components/scroll/scroll_bar_theme.h @@ -46,6 +46,7 @@ public: return theme; } + protected: void ParsePattern(const RefPtr& themeConstants, const RefPtr& theme) const { RefPtr pattern = themeConstants->GetPatternByName(THEME_PATTERN_SCROLL_BAR); @@ -71,6 +72,8 @@ public: theme->defaultHeight_ = pattern->GetAttr("scroll_bar_default_height", 16.0_vp); } }; + + private: ~ScrollBarTheme() override = default;