cid#318941 AUTO_CAUSES_COPY

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I256c1f61ed997615e3277817ba60db4971783dab
pull/6617/head
Caolán McNamara 2023-06-09 22:11:40 +01:00 committed by Miklos Vajna
parent 2d6b190805
commit a5c000fa35
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}