mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 19:58:56 +03:00
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:
parent
d6eb5c5c7c
commit
d517cbfd68
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue