summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_accounts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/SkypeWeb/src/skype_accounts.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_accounts.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/skype_accounts.cpp b/protocols/SkypeWeb/src/skype_accounts.cpp
index bf9dafc745..2016fac51c 100644
--- a/protocols/SkypeWeb/src/skype_accounts.cpp
+++ b/protocols/SkypeWeb/src/skype_accounts.cpp
@@ -43,9 +43,9 @@ int CSkypeProto::UninitAccount(CSkypeProto *proto)
CSkypeProto* CSkypeProto::GetContactAccount(MCONTACT hContact)
{
mir_cslock lck(accountsLock);
- for (int i = 0; i < Accounts.getCount(); i++)
- if (mir_strcmpi(GetContactProto(hContact), Accounts[i]->m_szModuleName) == 0)
- return Accounts[i];
+ for (auto &it : Accounts)
+ if (mir_strcmpi(GetContactProto(hContact), it->m_szModuleName) == 0)
+ return it;
return nullptr;
}