Skip to content
Snippets Groups Projects
Commit 9f285534 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

presence: avoid unneeded copy

Change-Id: Ief51be2f11ee65be017d93dbc7b19e6152dd7b91
parent 7362ba13
No related branches found
No related tags found
No related merge requests found
......@@ -121,7 +121,7 @@ getSubscriptions(const std::string& accountID)
if (auto sipaccount = jami::Manager::instance().getAccount<SIPAccount>(accountID)) {
if (auto pres = sipaccount->getPresence()) {
auto subs = pres->getClientSubscriptions();
const auto& subs = pres->getClientSubscriptions();
ret.reserve(subs.size());
for (const auto& s : subs) {
ret.push_back({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment