void RuleSet::addToRuleSet(AtomicStringImpl* key, AtomRuleMap& map, const RuleData& ruleData) { if (!key) return; OwnPtr<Vector<RuleData> >& rules = map.add(key, nullptr).iterator->value; if (!rules) rules = adoptPtr(new Vector<RuleData>); rules->append(ruleData); }
void RuleSet::addToRuleSet(AtomicStringImpl* key, AtomRuleMap& map, const RuleData& ruleData) { if (!key) return; auto& rules = map.add(key, nullptr).iterator->value; if (!rules) rules = std::make_unique<RuleDataVector>(); rules->append(ruleData); }