diff options
Diffstat (limited to 'protocols/MSN/src/msn_menu.cpp')
-rw-r--r-- | protocols/MSN/src/msn_menu.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/MSN/src/msn_menu.cpp b/protocols/MSN/src/msn_menu.cpp index 9112c3fec0..65807adcc6 100644 --- a/protocols/MSN/src/msn_menu.cpp +++ b/protocols/MSN/src/msn_menu.cpp @@ -192,9 +192,9 @@ static CMsnProto* GetProtoInstanceByHContact(MCONTACT hContact) if (szProto == nullptr)
return nullptr;
- for (int i = 0; i < g_Instances.getCount(); i++)
- if (!mir_strcmp(szProto, g_Instances[i].m_szModuleName))
- return &g_Instances[i];
+ for (auto &it : g_Instances)
+ if (!mir_strcmp(szProto, it->m_szModuleName))
+ return it;
return nullptr;
}
|