diff --git a/plugins/GSdx/GSCodeBuffer.cpp b/plugins/GSdx/GSCodeBuffer.cpp index 9de0e189b3..bac2178efb 100644 --- a/plugins/GSdx/GSCodeBuffer.cpp +++ b/plugins/GSdx/GSCodeBuffer.cpp @@ -32,7 +32,7 @@ GSCodeBuffer::GSCodeBuffer(size_t blocksize) GSCodeBuffer::~GSCodeBuffer() { - for(list::iterator i = m_buffers.begin(); i != m_buffers.end(); i++) + for(list::iterator i = m_buffers.begin(); i != m_buffers.end(); ++i) { vmfree(*i, m_blocksize); } diff --git a/plugins/GSdx/GSDevice.cpp b/plugins/GSdx/GSDevice.cpp index d1c6a9c3ed..e421044b4b 100644 --- a/plugins/GSdx/GSDevice.cpp +++ b/plugins/GSdx/GSDevice.cpp @@ -132,7 +132,7 @@ GSTexture* GSDevice::FetchSurface(int type, int w, int h, bool msaa, int format) { GSVector2i size(w, h); - for(list::iterator i = m_pool.begin(); i != m_pool.end(); i++) + for(list::iterator i = m_pool.begin(); i != m_pool.end(); ++i) { GSTexture* t = *i; diff --git a/plugins/GSdx/GSDirtyRect.cpp b/plugins/GSdx/GSDirtyRect.cpp index e9efc0d10b..2e0dfebb86 100644 --- a/plugins/GSdx/GSDirtyRect.cpp +++ b/plugins/GSdx/GSDirtyRect.cpp @@ -68,7 +68,7 @@ GSVector4i GSDirtyRectList::GetDirtyRectAndClear(const GIFRegTEX0& TEX0, const G { GSVector4i r(INT_MAX, INT_MAX, 0, 0); - for(list::iterator i = begin(); i != end(); i++) + for(list::iterator i = begin(); i != end(); ++i) { r = r.runion(i->GetDirtyRect(TEX0)); } diff --git a/plugins/GSdx/GSFunctionMap.h b/plugins/GSdx/GSFunctionMap.h index 3876679cc3..29185c748e 100644 --- a/plugins/GSdx/GSFunctionMap.h +++ b/plugins/GSdx/GSFunctionMap.h @@ -108,7 +108,7 @@ public: typename hash_map::iterator i; - for(i = m_map_active.begin(); i != m_map_active.end(); i++) + for(i = m_map_active.begin(); i != m_map_active.end(); ++i) { ActivePtr* p = i->second; @@ -120,7 +120,7 @@ public: printf("GS stats\n"); - for(i = m_map_active.begin(); i != m_map_active.end(); i++) + for(i = m_map_active.begin(); i != m_map_active.end(); ++i) { KEY key = i->first; ActivePtr* p = i->second; diff --git a/plugins/GSdx/GSLocalMemory.cpp b/plugins/GSdx/GSLocalMemory.cpp index c37bfaec3c..f380a38b1a 100644 --- a/plugins/GSdx/GSLocalMemory.cpp +++ b/plugins/GSdx/GSLocalMemory.cpp @@ -463,7 +463,7 @@ GSLocalMemory::~GSLocalMemory() for_each(m_pomap.begin(), m_pomap.end(), aligned_free_second()); for_each(m_po4map.begin(), m_po4map.end(), aligned_free_second()); - for(hash_map*>::iterator i = m_p2tmap.begin(); i != m_p2tmap.end(); i++) + for(hash_map*>::iterator i = m_p2tmap.begin(); i != m_p2tmap.end(); ++i) { delete [] i->second; } @@ -640,7 +640,7 @@ vector* GSLocalMemory::GetPage2TileMap(const GIFRegTEX0& TEX0) vector* p2t = new vector[MAX_PAGES]; - for(hash_map >::iterator i = tmp.begin(); i != tmp.end(); i++) + for(hash_map >::iterator i = tmp.begin(); i != tmp.end(); ++i) { uint32 page = i->first; @@ -648,7 +648,7 @@ vector* GSLocalMemory::GetPage2TileMap(const GIFRegTEX0& TEX0) hash_map m; - for(hash_set::iterator j = tiles.begin(); j != tiles.end(); j++) + for(hash_set::iterator j = tiles.begin(); j != tiles.end(); ++j) { uint32 addr = *j; @@ -669,7 +669,7 @@ vector* GSLocalMemory::GetPage2TileMap(const GIFRegTEX0& TEX0) // sort by x and flip the mask (it will be used to erase a lot of bits in a loop, [x] &= ~y) - for(hash_map::iterator j = m.begin(); j != m.end(); j++) + for(hash_map::iterator j = m.begin(); j != m.end(); ++j) { p2t[page].push_back(GSVector2i(j->first, ~j->second)); } diff --git a/plugins/GSdx/GSTextureCache.cpp b/plugins/GSdx/GSTextureCache.cpp index 9ce246d6ac..118be54df0 100644 --- a/plugins/GSdx/GSTextureCache.cpp +++ b/plugins/GSdx/GSTextureCache.cpp @@ -197,7 +197,7 @@ GSTextureCache::Source* GSTextureCache::LookupSource(const GIFRegTEX0& TEX0, con list& m = m_src.m_map[TEX0.TBP0 >> 5]; - for(list::iterator i = m.begin(); i != m.end(); i++) + for(list::iterator i = m.begin(); i != m.end(); ++i) { Source* s = *i; @@ -244,7 +244,7 @@ GSTextureCache::Source* GSTextureCache::LookupSource(const GIFRegTEX0& TEX0, con // (Simply not doing this code at all makes a lot of previsouly missing stuff show (but breaks pretty much everything // else.) - for(list::iterator i = m_dst[RenderTarget].begin(); i != m_dst[RenderTarget].end(); i++) + for(list::iterator i = m_dst[RenderTarget].begin(); i != m_dst[RenderTarget].end(); ++i) { Target* t = *i; @@ -307,7 +307,7 @@ GSTextureCache::Source* GSTextureCache::LookupSource(const GIFRegTEX0& TEX0, con // Unfortunately, I don't have any Arc the Lad testcase // // 1/ Check only current frame, I guess it is only used as a postprocessing effect - for(list::iterator i = m_dst[DepthStencil].begin(); i != m_dst[DepthStencil].end(); i++) { + for(list::iterator i = m_dst[DepthStencil].begin(); i != m_dst[DepthStencil].end(); ++i) { Target* t = *i; if(!t->m_age && t->m_used && t->m_dirty.empty() && GSUtil::HasSharedBits(bp, psm, t->m_TEX0.TBP0, t->m_TEX0.PSM)) @@ -372,7 +372,7 @@ GSTextureCache::Target* GSTextureCache::LookupTarget(const GIFRegTEX0& TEX0, int Target* dst = NULL; - for(list::iterator i = m_dst[type].begin(); i != m_dst[type].end(); i++) + for(list::iterator i = m_dst[type].begin(); i != m_dst[type].end(); ++i) { Target* t = *i; @@ -405,7 +405,7 @@ GSTextureCache::Target* GSTextureCache::LookupTarget(const GIFRegTEX0& TEX0, int // Depth stencil/RT can be an older RT/DS but only check recent RT/DS to avoid to pick // some bad data. - for(list::iterator i = m_dst[rev_type].begin(); i != m_dst[rev_type].end(); i++) + for(list::iterator i = m_dst[rev_type].begin(); i != m_dst[rev_type].end(); ++i) { Target* t = *i; @@ -614,7 +614,7 @@ GSTextureCache::Target* GSTextureCache::LookupTarget(const GIFRegTEX0& TEX0, int // must invalidate the Target/Depth respectively void GSTextureCache::InvalidateVideoMemType(int type, uint32 bp) { - for(list::iterator i = m_dst[type].begin(); i != m_dst[type].end(); i++) + for(list::iterator i = m_dst[type].begin(); i != m_dst[type].end(); ++i) { Target* t = *i; @@ -720,7 +720,7 @@ void GSTextureCache::InvalidateVideoMem(GSOffset* off, const GSVector4i& rect, b // Note: very hot path on snowbling engine game vector& l = s->m_p2t[page]; - for(vector::iterator k = l.begin(); k != l.end(); k++) + for(vector::iterator k = l.begin(); k != l.end(); ++k) { valid[k->x] &= k->y; } diff --git a/plugins/GSdx/GSTextureCacheSW.cpp b/plugins/GSdx/GSTextureCacheSW.cpp index 8d1a2ba6f3..b9ecd45119 100644 --- a/plugins/GSdx/GSTextureCacheSW.cpp +++ b/plugins/GSdx/GSTextureCacheSW.cpp @@ -40,7 +40,7 @@ GSTextureCacheSW::Texture* GSTextureCacheSW::Lookup(const GIFRegTEX0& TEX0, cons list& m = m_map[TEX0.TBP0 >> 5]; - for(list::iterator i = m.begin(); i != m.end(); i++) + for(list::iterator i = m.begin(); i != m.end(); ++i) { Texture* t2 = *i; @@ -91,7 +91,7 @@ void GSTextureCacheSW::InvalidatePages(const uint32* pages, uint32 psm) const list& map = m_map[page]; - for(list::const_iterator i = map.begin(); i != map.end(); i++) + for(list::const_iterator i = map.begin(); i != map.end(); ++i) { Texture* t = *i; @@ -103,7 +103,7 @@ void GSTextureCacheSW::InvalidatePages(const uint32* pages, uint32 psm) { vector& l = t->m_p2t[page]; - for(vector::iterator j = l.begin(); j != l.end(); j++) + for(vector::iterator j = l.begin(); j != l.end(); ++j) { valid[j->x] &= j->y; }