diff options
author | George Hazan <ghazan@miranda.im> | 2018-02-21 18:37:12 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-02-21 18:40:14 +0300 |
commit | b6de8047c1113030b64c81e58c2ba37c062639ae (patch) | |
tree | 046dbb4cf9e8cd2f904fef38ca86e00304605ac8 /protocols/SkypeWeb/src/skype_utils.cpp | |
parent | 40dc4c27f7d2ea66ff570281a992415a0e6578a2 (diff) |
Skype: C++'11 iterators
Diffstat (limited to 'protocols/SkypeWeb/src/skype_utils.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_utils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/skype_utils.cpp b/protocols/SkypeWeb/src/skype_utils.cpp index cd85c2db04..6350b40c8c 100644 --- a/protocols/SkypeWeb/src/skype_utils.cpp +++ b/protocols/SkypeWeb/src/skype_utils.cpp @@ -593,9 +593,9 @@ INT_PTR CSkypeProto::ParseSkypeUriService(WPARAM, LPARAM lParam) INT_PTR CSkypeProto::GlobalParseSkypeUriService(WPARAM wParam, LPARAM lParam) { mir_cslock lck(accountsLock); - for (int i = 0; i < Accounts.getCount(); i++) - if (Accounts[i]->IsOnline()) - return Accounts[i]->ParseSkypeUriService(wParam, lParam); + for (auto &it : Accounts) + if (it->IsOnline()) + return it->ParseSkypeUriService(wParam, lParam); return 1; } |