diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-09-04 22:46:22 +0200 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-09-04 22:46:22 +0200 |
commit | 5eff546aea4f15f7c60af40b452661d058bcabf7 (patch) | |
tree | 0260bf3797322609020c8a4af13cc949112e9f60 /lib/settings.cpp | |
parent | 65c60c786dd18553a804e01ac60e5a167cb0a400 (diff) | |
download | libquotient-5eff546aea4f15f7c60af40b452661d058bcabf7.tar.gz libquotient-5eff546aea4f15f7c60af40b452661d058bcabf7.zip |
Fixes of clazy warnings
Diffstat (limited to 'lib/settings.cpp')
-rw-r--r-- | lib/settings.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/settings.cpp b/lib/settings.cpp index 5413693d..dd086d9c 100644 --- a/lib/settings.cpp +++ b/lib/settings.cpp @@ -53,11 +53,12 @@ bool Settings::contains(const QString& key) const QStringList Settings::childGroups() const { - auto l = QSettings::childGroups(); - for (const auto& g: legacySettings.childGroups()) - if (!l.contains(g)) - l.push_back(g); - return l; + auto groups = QSettings::childGroups(); + const auto& legacyGroups = legacySettings.childGroups(); + for (const auto& g: legacyGroups) + if (!groups.contains(g)) + groups.push_back(g); + return groups; } void SettingsGroup::setValue(const QString& key, const QVariant& value) |