diff options
Diffstat (limited to 'plugins/GmailNotifier/src/check.cpp')
-rw-r--r-- | plugins/GmailNotifier/src/check.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
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);
}
}
}
|