diff options
author | George Hazan <ghazan@miranda.im> | 2018-02-21 18:30:20 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-02-21 18:40:13 +0300 |
commit | 95ce21d8512af00a4c5f607091a459b789f79b79 (patch) | |
tree | a2ac7c7c7887b4c8c80e6a59ad9cc24ce4758e91 /plugins/Db3x_mmap/src/dbcache.cpp | |
parent | 9ceaf3659acce44d579c2db5b29d4b48dfe893f2 (diff) |
mmap: C++'11 iterators
Diffstat (limited to 'plugins/Db3x_mmap/src/dbcache.cpp')
-rw-r--r-- | plugins/Db3x_mmap/src/dbcache.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/Db3x_mmap/src/dbcache.cpp b/plugins/Db3x_mmap/src/dbcache.cpp index abfe6a099d..1196d4bceb 100644 --- a/plugins/Db3x_mmap/src/dbcache.cpp +++ b/plugins/Db3x_mmap/src/dbcache.cpp @@ -123,8 +123,7 @@ void CDb3Mmap::DBFill(DWORD ofs, int bytes) static VOID CALLBACK DoBufferFlushTimerProc(HWND, UINT, UINT_PTR idEvent, DWORD)
{
- for (int i = 0; i < g_Dbs.getCount(); i++) {
- CDb3Mmap *db = g_Dbs[i];
+ for (auto &db : g_Dbs) {
if (db->m_flushBuffersTimerId != idEvent)
continue;
|