From b19fb7a2d562931c08472794fea90a0e4c320760 Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Fri, 9 Jan 2009 22:23:12 -0700 Subject: Code style cleanup Signed-off-by: Ira Rice --- src/configuration.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/configuration.cpp b/src/configuration.cpp index 8e80de18..a2ce4500 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -70,8 +70,7 @@ float ConfigurationObject::getValue(const std::string &key, float deflt) return (iter != mOptions.end()) ? atof(iter->second.c_str()) : deflt; } -void -ConfigurationObject::deleteList(const std::string &name) +void ConfigurationObject::deleteList(const std::string &name) { for (ConfigurationList::const_iterator it = mContainerOptions[name].begin(); it != mContainerOptions[name].end(); it++) @@ -80,8 +79,7 @@ ConfigurationObject::deleteList(const std::string &name) mContainerOptions[name].clear(); } -void -ConfigurationObject::clear(void) +void ConfigurationObject::clear(void) { for (std::map::const_iterator it = mContainerOptions.begin(); it != mContainerOptions.end(); it++) @@ -95,8 +93,7 @@ ConfigurationObject::~ConfigurationObject(void) clear(); } -void -ConfigurationObject::initFromXML(xmlNodePtr parent_node) +void ConfigurationObject::initFromXML(xmlNodePtr parent_node) { clear(); @@ -161,8 +158,7 @@ void Configuration::init(const std::string &filename) xmlFreeDoc(doc); } -void -ConfigurationObject::writeToXML(xmlTextWriterPtr writer) +void ConfigurationObject::writeToXML(xmlTextWriterPtr writer) { for (OptionIterator i = mOptions.begin(); i != mOptions.end(); i++) { -- cgit v1.2.3-70-g09d2