Commit b8a0311b authored by Adrien Dorsaz's avatar Adrien Dorsaz

client: move account instead of copy to take ownership on it

parent dad68c73
......@@ -2,7 +2,7 @@
#include "xmpp/Client.hpp"
Xmpp::Client::Client(Account account, IHttpClient *httpClient)
:_account{account},
:_account{std::move(account)},
_httpClient{httpClient}
{
_webSocketURI = account.webSocketURI();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment