summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.cpp
diff options
context:
space:
mode:
authorTillmann Karras <tilkax@gmail.com>2014-02-12 16:00:34 +0100
committerTillmann Karras <tilkax@gmail.com>2014-02-13 09:05:50 +0100
commit404624bf0b0125e5a408021c616ee9b9e2dde382 (patch)
treed2c3cd6256b09ebdc04b8c913b21c2e56d30c2e1 /Source/Core/VideoCommon/TextureCacheBase.cpp
parent2ff794d299b0426d1f2a523523260efad84a9837 (diff)
Turn loops into range-based form
and some things suggested by cppcheck and compiler warnings.
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp
index a3224bcf08..6903f778c7 100644
--- a/Source/Core/VideoCommon/TextureCacheBase.cpp
+++ b/Source/Core/VideoCommon/TextureCacheBase.cpp
@@ -172,7 +172,7 @@ void TextureCache::MakeRangeDynamic(u32 start_address, u32 size)
tcend = textures.upper_bound(start_address + size);
if (iter != textures.begin())
- iter--;
+ --iter;
for (; iter != tcend; ++iter)
{