[Pkg-owncloud-commits] [owncloud-client] 45/498: Never use 'new Account' directly, prefer Account::create()

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Aug 11 14:48:32 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit d64373c6102d5bc8d0339ad8ce797b65ae9e24de
Author: Christian Kamm <kamm at incasoftware.de>
Date:   Thu Apr 23 14:54:41 2015 +0200

    Never use 'new Account' directly, prefer Account::create()
---
 src/gui/accountmanager.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/gui/accountmanager.cpp b/src/gui/accountmanager.cpp
index 5bfa3c5..518154d 100644
--- a/src/gui/accountmanager.cpp
+++ b/src/gui/accountmanager.cpp
@@ -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());
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list