Commit 9f285534 authored by Adrien Béraud's avatar Adrien Béraud

presence: avoid unneeded copy

Change-Id: Ief51be2f11ee65be017d93dbc7b19e6152dd7b91
parent 7362ba13
......@@ -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({
......
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