]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
FolderWizard: pass AccountPtr by const&
authorChristian Kamm <mail@ckamm.de>
Tue, 29 Nov 2016 09:39:20 +0000 (10:39 +0100)
committerChristian Kamm <mail@ckamm.de>
Tue, 29 Nov 2016 09:39:20 +0000 (10:39 +0100)
For review of #5045

src/gui/folderwizard.cpp
src/gui/folderwizard.h

index 2c614f00e48e0871968d63d5023a031ace85072b..a521d4284a7193edfeb0c99ec721f0fb1f0277e4 100644 (file)
@@ -56,7 +56,7 @@ QString FormatWarningsWizardPage::formatWarnings(const QStringList &warnings) co
     return ret;
 }
 
-FolderWizardLocalPath::FolderWizardLocalPath(AccountPtr account)
+FolderWizardLocalPath::FolderWizardLocalPath(const AccountPtr& account)
     : FormatWarningsWizardPage(),
       _account(account)
 {
@@ -139,7 +139,7 @@ void FolderWizardLocalPath::slotChooseLocalFolder()
 }
 
 // =================================================================================
-FolderWizardRemotePath::FolderWizardRemotePath(AccountPtr account)
+FolderWizardRemotePath::FolderWizardRemotePath(const AccountPtr& account)
     : FormatWarningsWizardPage()
     ,_warnWasVisible(false)
     ,_account(account)
@@ -479,7 +479,7 @@ void FolderWizardRemotePath::showWarn( const QString& msg ) const
 
 // ====================================================================================
 
-FolderWizardSelectiveSync::FolderWizardSelectiveSync(AccountPtr account)
+FolderWizardSelectiveSync::FolderWizardSelectiveSync(const AccountPtr& account)
 {
     QVBoxLayout *layout = new QVBoxLayout(this);
     _treeView = new SelectiveSyncTreeView(account, this);
index ed0718bb73d6e737c38b02f88442a7a45854a93a..512a97562e7e08c06f9f1b90d86cb613320aa60f 100644 (file)
@@ -49,7 +49,7 @@ class FolderWizardLocalPath : public FormatWarningsWizardPage
 {
     Q_OBJECT
 public:
-    FolderWizardLocalPath(AccountPtr account);
+    explicit FolderWizardLocalPath(const AccountPtr& account);
     ~FolderWizardLocalPath();
 
     virtual bool isComplete() const Q_DECL_OVERRIDE;
@@ -76,7 +76,7 @@ class FolderWizardRemotePath : public FormatWarningsWizardPage
 {
     Q_OBJECT
 public:
-    explicit FolderWizardRemotePath(AccountPtr account);
+    explicit FolderWizardRemotePath(const AccountPtr& account);
     ~FolderWizardRemotePath();
 
     virtual bool isComplete() const Q_DECL_OVERRIDE;
@@ -118,7 +118,7 @@ class FolderWizardSelectiveSync : public QWizardPage
 {
     Q_OBJECT
 public:
-    explicit FolderWizardSelectiveSync(AccountPtr account);
+    explicit FolderWizardSelectiveSync(const AccountPtr& account);
     ~FolderWizardSelectiveSync();
 
     virtual bool validatePage() Q_DECL_OVERRIDE;