Never use 'new Account' directly, prefer Account::create()

This commit is contained in:
Christian Kamm 2015-04-23 14:54:41 +02:00
parent 28306e5dfb
commit d64373c610

View file

@ -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());