summaryrefslogtreecommitdiff
path: root/src/configuration.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-01-15 23:56:26 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-01-16 19:42:45 +0100
commit81306cf16bd4660b868f24a74b1e731c8a00af95 (patch)
treedb3c905969884600792055d330851561bcf17384 /src/configuration.cpp
parentbdb66839ca480fdfa51a7253fb8f95c3657381c1 (diff)
downloadmana-81306cf16bd4660b868f24a74b1e731c8a00af95.tar.gz
mana-81306cf16bd4660b868f24a74b1e731c8a00af95.tar.bz2
mana-81306cf16bd4660b868f24a74b1e731c8a00af95.tar.xz
mana-81306cf16bd4660b868f24a74b1e731c8a00af95.zip
Renamed some file names for consistency with the class names
This was already done by ManaPlus. It's a good idea anyway and it makes comparing the code a little easier. Reviewed-by: Yohann Ferreira
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r--src/configuration.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp
index 44621eb3..848c8cc9 100644
--- a/src/configuration.cpp
+++ b/src/configuration.cpp
@@ -105,10 +105,8 @@ void Configuration::cleanDefaults()
for (DefaultsData::const_iterator iter = mDefaultsData->begin();
iter != mDefaultsData->end(); iter++)
{
- if (iter->second)
- delete(iter->second);
+ delete iter->second;
}
- mDefaultsData->clear();
delete mDefaultsData;
mDefaultsData = 0;
}