From a139d1a2799c125f2ffe435338e705a7416cd33b Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Tue, 29 Nov 2016 10:39:20 +0100 Subject: [PATCH] FolderWizard: pass AccountPtr by const& For review of #5045 --- src/gui/folderwizard.cpp | 6 +++--- src/gui/folderwizard.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/gui/folderwizard.cpp b/src/gui/folderwizard.cpp index 2c614f00e..a521d4284 100644 --- a/src/gui/folderwizard.cpp +++ b/src/gui/folderwizard.cpp @@ -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); diff --git a/src/gui/folderwizard.h b/src/gui/folderwizard.h index ed0718bb7..512a97562 100644 --- a/src/gui/folderwizard.h +++ b/src/gui/folderwizard.h @@ -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; -- 2.30.2