fix build by making unique_ptr not const if we std::move it

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
Matthieu Gallien 2023-09-26 15:40:38 +02:00
parent d6eb5c5c7c
commit d517cbfd68

View file

@ -179,7 +179,7 @@ bool AccountManager::restoreFromLegacySettings()
legacyCfgFileGrandParentFolder + legacyCfgFileRelativePath}; legacyCfgFileGrandParentFolder + legacyCfgFileRelativePath};
for (const auto &configFile : legacyLocations) { for (const auto &configFile : legacyLocations) {
const auto oCSettings = std::make_unique<QSettings>(configFile, QSettings::IniFormat); auto oCSettings = std::make_unique<QSettings>(configFile, QSettings::IniFormat);
if (oCSettings->status() != QSettings::Status::NoError) { if (oCSettings->status() != QSettings::Status::NoError) {
qCInfo(lcAccountManager) << "Error reading legacy configuration file" << oCSettings->status(); qCInfo(lcAccountManager) << "Error reading legacy configuration file" << oCSettings->status();
break; break;