From 977ca844c79b4534382420744fd193649311a9cf Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 10 Mar 2015 15:23:27 +0100 Subject: [PATCH] Remove an unnecessary temporary variable --- lib/config/configitem.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/config/configitem.cpp b/lib/config/configitem.cpp index 2dc9ae0c6..4206a7f31 100644 --- a/lib/config/configitem.cpp +++ b/lib/config/configitem.cpp @@ -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(); -- 2.50.1