@@ -27,7 +27,8 @@ namespace margelo::nitro::cssnitro {
2727 struct HybridStyleRegistry ::Impl {
2828 Impl ();
2929
30- void set (const std::string &className, const std::vector<HybridStyleRule> &styleRule);
30+ void
31+ setClassname (const std::string &className, const std::vector<HybridStyleRule> &styleRule);
3132
3233 void addStyleSheet (const HybridStyleSheet &stylesheet);
3334
@@ -97,9 +98,9 @@ namespace margelo::nitro::cssnitro {
9798
9899 HybridStyleRegistry::~HybridStyleRegistry () = default ;
99100
100- void HybridStyleRegistry::set (const std::string &className,
101- const std::vector<HybridStyleRule> &styleRule) {
102- impl_->set (className, styleRule);
101+ void HybridStyleRegistry::setClassname (const std::string &className,
102+ const std::vector<HybridStyleRule> &styleRule) {
103+ impl_->setClassname (className, styleRule);
103104 }
104105
105106 void HybridStyleRegistry::addStyleSheet (const HybridStyleSheet &stylesheet) {
@@ -173,8 +174,8 @@ namespace margelo::nitro::cssnitro {
173174 shadowUpdates_ = std::make_unique<ShadowTreeUpdateManager>();
174175 }
175176
176- void HybridStyleRegistry::Impl::set (const std::string &className,
177- const std::vector<HybridStyleRule> &styleRules) {
177+ void HybridStyleRegistry::Impl::setClassname (const std::string &className,
178+ const std::vector<HybridStyleRule> &styleRules) {
178179 // Reverse the style rules, this way later on we can bail early if values are already set
179180 auto reversedRules = styleRules;
180181 std::reverse (reversedRules.begin (), reversedRules.end ());
@@ -201,8 +202,8 @@ namespace margelo::nitro::cssnitro {
201202 const std::string &className = std::get<0 >(entry);
202203 const std::vector<HybridStyleRule> &styleRule = std::get<1 >(entry);
203204
204- // Call set with a vector containing the single styleRule
205- set (className, styleRule);
205+ // Call setClassname with a vector containing the single styleRule
206+ setClassname (className, styleRule);
206207 }
207208 }
208209 });
0 commit comments