Remove even more unnecessary copies

refs #12509
This commit is contained in:
Gunnar Beutner 2016-08-27 20:37:25 +02:00
parent ef50c57ed0
commit ed72112d4b
2 changed files with 2 additions and 2 deletions

View File

@ -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);
} }
/** /**

View File

@ -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);
} }
/** /**