summaryrefslogtreecommitdiff
path: root/src/configuration.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2010-01-10 17:19:24 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-01-10 17:20:33 +0100
commitf5a394a5051384a930d635da22ccafc6beb1cb84 (patch)
treed28fc14408a6bb91170e05880b4d2af6a17fcc14 /src/configuration.h
parent5757066312cab082378dbc5d8df97dea3fe40af0 (diff)
downloadmana-f5a394a5051384a930d635da22ccafc6beb1cb84.tar.gz
mana-f5a394a5051384a930d635da22ccafc6beb1cb84.tar.bz2
mana-f5a394a5051384a930d635da22ccafc6beb1cb84.tar.xz
mana-f5a394a5051384a930d635da22ccafc6beb1cb84.zip
Change code style
Diffstat (limited to 'src/configuration.h')
-rw-r--r--src/configuration.h11
1 files changed, 8 insertions, 3 deletions
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;