From f5a394a5051384a930d635da22ccafc6beb1cb84 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 10 Jan 2010 17:19:24 +0200 Subject: Change code style --- src/configuration.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/configuration.h') diff --git a/src/configuration.h b/src/configuration.h index c6ff1186..b9720b94 100644 --- a/src/configuration.h +++ b/src/configuration.h @@ -128,14 +128,19 @@ class ConfigurationObject deleteList(name); ConfigurationList *list = &(mContainerOptions[name]); - for (IT it = begin; it != end; it++) { + for (IT it = begin; it != end; it++) + { ConfigurationObject *wrobj = manager->writeConfigItem(*it, nextobj); - if (wrobj) { // wrote something + if (wrobj) + { // wrote something assert (wrobj == nextobj); nextobj = new ConfigurationObject; list->push_back(wrobj); - } else + } + else + { nextobj->clear(); // you never know... + } } delete nextobj; -- cgit v1.2.3-60-g2f50