]> granicus.if.org Git - icinga2/commitdiff
Remove an unnecessary temporary variable
authorGunnar Beutner <gunnar.beutner@netways.de>
Tue, 10 Mar 2015 14:23:27 +0000 (15:23 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Tue, 10 Mar 2015 14:23:27 +0000 (15:23 +0100)
lib/config/configitem.cpp

index 2dc9ae0c6966d890d4c3d8f6eae1b5473e506e32..4206a7f313c9051b36592fa7f76a083df01f7594 100644 (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();