From 477a6ea70d0bb1b1dfe9cbd9a15b6dad0284ddeb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 21 Feb 2018 18:40:03 +0300 Subject: all another C++'11 iterators --- protocols/Steam/src/steam_accounts.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Steam/src') 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 -- cgit v1.2.3