mirror of https://github.com/Icinga/icinga2.git
Remove an unnecessary temporary variable
This commit is contained in:
parent
5e79cb8048
commit
977ca844c7
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue