Remove an unnecessary temporary variable

This commit is contained in:
Gunnar Beutner 2015-03-10 15:23:27 +01:00
parent 5e79cb8048
commit 977ca844c7
1 changed files with 1 additions and 3 deletions

View File

@ -205,13 +205,11 @@ DynamicObject::Ptr ConfigItem::Commit(bool discard)
m_CommittedItems.push_back(this);
}
Dictionary::Ptr attrs = Serialize(dobj, FAConfig);
Dictionary::Ptr persistentItem = new Dictionary();
persistentItem->Set("type", GetType());
persistentItem->Set("name", GetName());
persistentItem->Set("properties", attrs);
persistentItem->Set("properties", Serialize(dobj, FAConfig));
persistentItem->Set("debug_hints", debugHints.ToDictionary());
Array::Ptr di = new Array();