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 --- plugins/GmailNotifier/src/check.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'plugins/GmailNotifier/src/check.cpp') diff --git a/plugins/GmailNotifier/src/check.cpp b/plugins/GmailNotifier/src/check.cpp index 0d642a8a42..88cafca600 100644 --- a/plugins/GmailNotifier/src/check.cpp +++ b/plugins/GmailNotifier/src/check.cpp @@ -141,11 +141,10 @@ void __cdecl Check_ThreadFunc(void *lpParam) NotifyUser((Account *)lpParam); } else { - for (int i = 0; i < g_accs.getCount(); i++) { - Account &acc = g_accs[i]; - if (GetContactProto(acc.hContact)) { - CheckMailInbox(&acc); - NotifyUser(&acc); + for (auto &it : g_accs) { + if (GetContactProto(it->hContact)) { + CheckMailInbox(it); + NotifyUser(it); } } } -- cgit v1.2.3