Attributes: use proper function for overwriting attributes

pull/3128/head
Felix Heitmann 1 year ago committed by M4rFri
parent 25ee4f3ffb
commit 58912623bc
No known key found for this signature in database

@ -46,7 +46,7 @@ public:
void put(attr_map_t const& attributes) { void put(attr_map_t const& attributes) {
auto lck = lock(); auto lck = lock();
attrs.insert(attributes.begin(), attributes.end()); for (auto const& attribute : attributes) attrs.insert_or_assign(attribute.first, attribute.second);
} }
void put(const key_t& key, const value_t& value) { put({{key, value}}); } void put(const key_t& key, const value_t& value) { put({{key, value}}); }

Loading…
Cancel
Save