Avoid creation of temporary containers

This commit is contained in:
Gianluca Recchia authored and Jonathan White committed 2019-01-30 09:50:10 -05:00
1 parent 39b96c13e8
commit 2cf837801d
6 files changed
+15 -7

No files matched your search

+2 -1
View File
@@ -91,7 +91,8 @@ void Config::sync()
void Config::upgrade()
{
for (const auto& setting : deprecationMap.keys()) {
const auto keys = deprecationMap.keys();
for (const auto& setting : keys) {
if (m_settings->contains(setting)) {
if (!deprecationMap.value(setting).isEmpty()) {
// Add entry with new name and old entry's value