mirror of https://github.com/Icinga/icinga2.git
parent
91f946a40e
commit
ec7c90d5d7
|
@ -98,11 +98,6 @@ Value Dictionary::Get(const String& key) const
|
||||||
*/
|
*/
|
||||||
void Dictionary::Set(const String& key, const Value& value)
|
void Dictionary::Set(const String& key, const Value& value)
|
||||||
{
|
{
|
||||||
if (value.IsEmpty()) {
|
|
||||||
Remove(key);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
ASSERT(!OwnsLock());
|
ASSERT(!OwnsLock());
|
||||||
ObjectLock olock(this);
|
ObjectLock olock(this);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue