Avoid creation of temporary containers
This commit is contained in:
committed by
Jonathan White
parent
39b96c13e8
commit
2cf837801d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user