mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-24 22:15:57 +03:00
Use std::make_unique rather than manually build unique_ptr for oCSettings
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
f4bca991e1
commit
14bd744df6
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ bool AccountManager::restoreFromLegacySettings()
|
|||
|
||||
qCInfo(lcAccountManager) << "Migrate: checking old config " << configFile;
|
||||
|
||||
std::unique_ptr<QSettings> oCSettings(new QSettings(configFile, QSettings::IniFormat));
|
||||
auto oCSettings = std::make_unique<QSettings>(configFile, QSettings::IniFormat);
|
||||
if (oCSettings->status() != QSettings::Status::NoError) {
|
||||
qCInfo(lcAccountManager) << "Error reading legacy configuration file" << oCSettings->status();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue