summaryrefslogtreecommitdiff
path: root/plugins/Db3x_mmap/src/dbmodulechain.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-02-21 18:30:20 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-02-21 18:40:13 +0300
commit95ce21d8512af00a4c5f607091a459b789f79b79 (patch)
treea2ac7c7c7887b4c8c80e6a59ad9cc24ce4758e91 /plugins/Db3x_mmap/src/dbmodulechain.cpp
parent9ceaf3659acce44d579c2db5b29d4b48dfe893f2 (diff)
mmap: C++'11 iterators
Diffstat (limited to 'plugins/Db3x_mmap/src/dbmodulechain.cpp')
-rw-r--r--plugins/Db3x_mmap/src/dbmodulechain.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/Db3x_mmap/src/dbmodulechain.cpp b/plugins/Db3x_mmap/src/dbmodulechain.cpp
index 6b43ba3c82..fe8735e044 100644
--- a/plugins/Db3x_mmap/src/dbmodulechain.cpp
+++ b/plugins/Db3x_mmap/src/dbmodulechain.cpp
@@ -129,8 +129,7 @@ char* CDb3Mmap::GetModuleNameByOfs(DWORD ofs)
STDMETHODIMP_(BOOL) CDb3Mmap::EnumModuleNames(DBMODULEENUMPROC pFunc, void *pParam)
{
- for (int i = 0; i < m_lMods.getCount(); i++) {
- ModuleName *pmn = m_lMods[i];
+ for (auto &pmn : m_lMods) {
int ret = pFunc(pmn->name, pParam);
if (ret)
return ret;