mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 06:55:59 +03:00
Take AccountPtr by reference in accountstate constructor
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
7db343b8a0
commit
fd4ddfdd4c
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue