mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-21 12:44:58 +02:00
parent
df2d7c5bf8
commit
fd2cd7a3a5
@ -78,10 +78,7 @@ void Dictionary::Set(const String& key, const Value& value)
|
|||||||
ASSERT(!OwnsLock());
|
ASSERT(!OwnsLock());
|
||||||
ObjectLock olock(this);
|
ObjectLock olock(this);
|
||||||
|
|
||||||
std::pair<std::map<String, Value>::iterator, bool> ret;
|
m_Data[key] = value;
|
||||||
ret = m_Data.insert(std::make_pair(key, value));
|
|
||||||
if (!ret.second)
|
|
||||||
ret.first->second = value;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user