summaryrefslogtreecommitdiff
path: root/src/account-server/accountclient.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/account-server/accountclient.h')
-rw-r--r--src/account-server/accountclient.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/account-server/accountclient.h b/src/account-server/accountclient.h
index afb2ef3e..3973d60b 100644
--- a/src/account-server/accountclient.h
+++ b/src/account-server/accountclient.h
@@ -45,7 +45,7 @@ class AccountClient : public NetComputer
public:
AccountClient(ENetPeer *peer);
- void setAccount(Account *acc);
+ void setAccount(std::unique_ptr<Account> acc);
void unsetAccount();
Account *getAccount() const;
@@ -59,9 +59,9 @@ class AccountClient : public NetComputer
/**
* Set the account associated with the connection.
*/
-inline void AccountClient::setAccount(Account *acc)
+inline void AccountClient::setAccount(std::unique_ptr<Account> acc)
{
- mAccount.reset(acc);
+ mAccount = std::move(acc);
}
/**