diff options
author | George Hazan <ghazan@miranda.im> | 2018-02-21 18:40:03 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-02-21 18:40:14 +0300 |
commit | 477a6ea70d0bb1b1dfe9cbd9a15b6dad0284ddeb (patch) | |
tree | 247eed13a5231c3983e343f0b7fc2a95012353c2 /protocols/Steam | |
parent | 9d0174ebe2bd005418855b18f737c36d5c20ab4a (diff) |
all another C++'11 iterators
Diffstat (limited to 'protocols/Steam')
-rw-r--r-- | protocols/Steam/src/steam_accounts.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Steam/src/steam_accounts.cpp b/protocols/Steam/src/steam_accounts.cpp index 43ec787c5f..8fedcc6181 100644 --- a/protocols/Steam/src/steam_accounts.cpp +++ b/protocols/Steam/src/steam_accounts.cpp @@ -27,9 +27,9 @@ CSteamProto* CSteamProto::GetContactAccount(MCONTACT hContact) if (proto == nullptr) return nullptr; - for (int i = 0; i < Accounts.getCount(); i++) - if (!mir_strcmp(proto, Accounts[i]->m_szModuleName)) - return Accounts[i]; + for (auto &it : Accounts) + if (!mir_strcmp(proto, it->m_szModuleName)) + return it; return nullptr; }
\ No newline at end of file |