summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_presence_manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/JabberG/src/jabber_presence_manager.cpp')
-rw-r--r--protocols/JabberG/src/jabber_presence_manager.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/protocols/JabberG/src/jabber_presence_manager.cpp b/protocols/JabberG/src/jabber_presence_manager.cpp
index aab96871a7..083cb89f55 100644
--- a/protocols/JabberG/src/jabber_presence_manager.cpp
+++ b/protocols/JabberG/src/jabber_presence_manager.cpp
@@ -66,12 +66,10 @@ bool CJabberPresenceManager::DeletePermanentHandler(CJabberPresencePermanentInfo
bool CJabberPresenceManager::HandlePresencePermanent(HXML node, ThreadData *pThreadData)
{
- for (int i = 0; i < m_arHandlers.getCount(); i++) {
- CJabberPresencePermanentInfo &pInfo = m_arHandlers[i];
-
+ for (auto &it : m_arHandlers) {
CJabberPresenceInfo presenceInfo;
- presenceInfo.m_pUserData = pInfo.m_pUserData;
- if ((ppro->*(pInfo.m_pHandler))(node, pThreadData, &presenceInfo))
+ presenceInfo.m_pUserData = it->m_pUserData;
+ if ((ppro->*(it->m_pHandler))(node, pThreadData, &presenceInfo))
return true;
}