Take AccountPtr by reference in accountstate constructor

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-06-25 18:18:03 +08:00
parent 7db343b8a0
commit fd4ddfdd4c
2 changed files with 2 additions and 2 deletions

View file

@ -42,7 +42,7 @@ namespace OCC {
Q_LOGGING_CATEGORY(lcAccountState, "nextcloud.gui.account.state", QtInfoMsg)
AccountState::AccountState(AccountPtr account)
AccountState::AccountState(const AccountPtr &account)
: QObject()
, _account(account)
, _state(AccountState::Disconnected)

View file

@ -89,7 +89,7 @@ public:
using ConnectionStatus = ConnectionValidator::Status;
/// Use the account as parent
explicit AccountState(AccountPtr account);
explicit AccountState(const AccountPtr &account);
~AccountState() override;
/** Creates an account state from settings and an Account object.