From d517cbfd687c70fa2123fad54eaa63d85993b52d Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Tue, 26 Sep 2023 15:40:38 +0200 Subject: [PATCH] fix build by making unique_ptr not const if we std::move it Signed-off-by: Matthieu Gallien --- src/gui/accountmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/accountmanager.cpp b/src/gui/accountmanager.cpp index 88c8f577d940b..ce981e11a6eab 100644 --- a/src/gui/accountmanager.cpp +++ b/src/gui/accountmanager.cpp @@ -179,7 +179,7 @@ bool AccountManager::restoreFromLegacySettings() legacyCfgFileGrandParentFolder + legacyCfgFileRelativePath}; for (const auto &configFile : legacyLocations) { - const auto oCSettings = std::make_unique(configFile, QSettings::IniFormat); + auto oCSettings = std::make_unique(configFile, QSettings::IniFormat); if (oCSettings->status() != QSettings::Status::NoError) { qCInfo(lcAccountManager) << "Error reading legacy configuration file" << oCSettings->status(); break;