summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_send_manager.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-02-21 18:36:32 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-02-21 18:40:14 +0300
commit6e96535fdbb886dcad1a3396659b368283922e64 (patch)
treeef1a35a5ca0c43fcf10a1190a47853588e90cddc /protocols/JabberG/src/jabber_send_manager.cpp
parentfd23a292afc4aa760a0ff8ab646eebe5942fb06d (diff)
Jabber: C++'11 iterators
Diffstat (limited to 'protocols/JabberG/src/jabber_send_manager.cpp')
-rw-r--r--protocols/JabberG/src/jabber_send_manager.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/protocols/JabberG/src/jabber_send_manager.cpp b/protocols/JabberG/src/jabber_send_manager.cpp
index 426a576253..9ee4df3119 100644
--- a/protocols/JabberG/src/jabber_send_manager.cpp
+++ b/protocols/JabberG/src/jabber_send_manager.cpp
@@ -62,12 +62,10 @@ bool CJabberSendManager::DeletePermanentHandler(CJabberSendPermanentInfo *pInfo)
bool CJabberSendManager::HandleSendPermanent(HXML node, ThreadData *pThreadData)
{
- for (int i = 0; i < m_arHandlers.getCount(); i++) {
- CJabberSendPermanentInfo &pInfo = m_arHandlers[i];
-
+ for (auto &pInfo : m_arHandlers) {
CJabberSendInfo sendInfo;
- sendInfo.m_pUserData = pInfo.m_pUserData;
- if ((ppro->*(pInfo.m_pHandler))(node, pThreadData, &sendInfo))
+ sendInfo.m_pUserData = pInfo->m_pUserData;
+ if ((ppro->*(pInfo->m_pHandler))(node, pThreadData, &sendInfo))
return true;
}