summaryrefslogtreecommitdiff
path: root/src/configuration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r--src/configuration.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp
index f0972052..f7718bdc 100644
--- a/src/configuration.cpp
+++ b/src/configuration.cpp
@@ -102,10 +102,9 @@ void Configuration::cleanDefaults()
{
if (mDefaultsData)
{
- for (DefaultsData::const_iterator iter = mDefaultsData->begin();
- iter != mDefaultsData->end(); iter++)
+ for (auto &[_, variableData] : *mDefaultsData)
{
- delete iter->second;
+ delete variableData;
}
delete mDefaultsData;
mDefaultsData = nullptr;