mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
Never use 'new Account' directly, prefer Account::create()
This commit is contained in:
parent
28306e5dfb
commit
d64373c610
1 changed files with 1 additions and 2 deletions
|
@ -84,8 +84,7 @@ bool AccountManager::restore()
|
|||
}
|
||||
|
||||
if (!settings->childKeys().isEmpty()) {
|
||||
acc = AccountPtr(new Account);
|
||||
acc->setSharedThis(acc);
|
||||
acc = Account::create();
|
||||
|
||||
acc->setUrl(settings->value(QLatin1String(urlC)).toUrl());
|
||||
|
||||
|
|
Loading…
Reference in a new issue