cid#318941 AUTO_CAUSES_COPY
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com> Change-Id: I256c1f61ed997615e3277817ba60db4971783dabpull/6617/head
parent
2d6b190805
commit
a5c000fa35
|
@ -42,7 +42,7 @@ void MigrateLevel(const XMLConfiguration &sourceConfig, XMLConfiguration &target
|
|||
{
|
||||
Poco::Util::AbstractConfiguration::Keys subKeys;
|
||||
sourceConfig.keys(sourceLevel, subKeys);
|
||||
for (auto key: subKeys)
|
||||
for (const auto& key: subKeys)
|
||||
{
|
||||
const std::string fullKey = sourceLevel + "." + key;
|
||||
MigrateLevel(sourceConfig, targetConfig, fullKey);
|
||||
|
@ -255,4 +255,4 @@ int MigrateConfig(std::string oldConfigFile, std::string newConfigFile, bool wri
|
|||
if (write)
|
||||
newXMLConfig->save(newConfigFile);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue