From 9f28553440aacea90d451a1323ce7e967e784404 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com> Date: Wed, 18 Dec 2019 11:46:37 -0500 Subject: [PATCH] presence: avoid unneeded copy Change-Id: Ief51be2f11ee65be017d93dbc7b19e6152dd7b91 --- src/client/presencemanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/presencemanager.cpp b/src/client/presencemanager.cpp index 01c6e349ea..e87cde2785 100644 --- a/src/client/presencemanager.cpp +++ b/src/client/presencemanager.cpp @@ -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({ -- GitLab