mirror of https://github.com/Icinga/icinga2.git
parent
ef50c57ed0
commit
ed72112d4b
|
@ -88,7 +88,7 @@ void Dictionary::Set(const String& key, Value&& value)
|
|||
{
|
||||
ObjectLock olock(this);
|
||||
|
||||
m_Data[key].Swap(value);
|
||||
m_Data[key] = std::move(value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -256,7 +256,7 @@ public:
|
|||
if (!IsObject())
|
||||
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…
Reference in New Issue