Attributes: use proper function for overwriting attributes

This commit is contained in:
Felix Heitmann 2024-07-09 14:52:58 +02:00 committed by M4rFri
parent 838d6402bc
commit 7394af7391

View File

@ -46,7 +46,7 @@ public:
void put(attr_map_t const& attributes) {
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}}); }