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