mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-15 09:44:31 +02:00
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…
x
Reference in New Issue
Block a user