projects
/
icinga2
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e79cb8
)
Remove an unnecessary temporary variable
author
Gunnar Beutner
<gunnar.beutner@netways.de>
Tue, 10 Mar 2015 14:23:27 +0000
(15:23 +0100)
committer
Gunnar Beutner
<gunnar.beutner@netways.de>
Tue, 10 Mar 2015 14:23:27 +0000
(15:23 +0100)
lib/config/configitem.cpp
patch
|
blob
|
history
diff --git
a/lib/config/configitem.cpp
b/lib/config/configitem.cpp
index 2dc9ae0c6966d890d4c3d8f6eae1b5473e506e32..4206a7f313c9051b36592fa7f76a083df01f7594 100644
(file)
--- 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();