diff options
| author | Tillmann Karras <tilkax@gmail.com> | 2014-03-03 06:25:15 +0100 |
|---|---|---|
| committer | Tillmann Karras <tilkax@gmail.com> | 2014-03-09 21:11:59 +0100 |
| commit | c89f04a7c5256d92b75e9868df9af6cfb7050559 (patch) | |
| tree | 8f919105c3f8701a54edc7ef403f268f41061a63 /Source/Core/VideoCommon/TextureCacheBase.cpp | |
| parent | f4012638672472afdbd9956229f273a18a77fd77 (diff) | |
clang-modernize -loop-convert
and some manual adjustments
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index 9ea6fae5ad..1c9bb0ba2a 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -61,12 +61,10 @@ void TextureCache::RequestInvalidateTextureCache() void TextureCache::Invalidate() { - TexCache::iterator - iter = textures.begin(), - tcend = textures.end(); - for (; iter != tcend; ++iter) - delete iter->second; - + for (auto& tex : textures) + { + delete tex.second; + } textures.clear(); } |
