mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 14:44:32 +02:00
parent
ef50c57ed0
commit
ed72112d4b
@ -88,7 +88,7 @@ void Dictionary::Set(const String& key, Value&& value)
|
|||||||
{
|
{
|
||||||
ObjectLock olock(this);
|
ObjectLock olock(this);
|
||||||
|
|
||||||
m_Data[key].Swap(value);
|
m_Data[key] = std::move(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -256,7 +256,7 @@ public:
|
|||||||
if (!IsObject())
|
if (!IsObject())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return (dynamic_pointer_cast<T>(boost::get<Object::Ptr>(m_Value)) != NULL);
|
return (dynamic_cast<T *>(boost::get<Object::Ptr>(m_Value).get()) != NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user