diff options
| author | Tillmann Karras <tilkax@gmail.com> | 2014-02-12 16:00:34 +0100 |
|---|---|---|
| committer | Tillmann Karras <tilkax@gmail.com> | 2014-02-13 09:05:50 +0100 |
| commit | 404624bf0b0125e5a408021c616ee9b9e2dde382 (patch) | |
| tree | d2c3cd6256b09ebdc04b8c913b21c2e56d30c2e1 /Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp | |
| parent | 2ff794d299b0426d1f2a523523260efad84a9837 (diff) | |
Turn loops into range-based form
and some things suggested by cppcheck and compiler warnings.
Diffstat (limited to 'Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp b/Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp index badeb0f566..0a8243ed5c 100644 --- a/Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp +++ b/Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp @@ -1012,10 +1012,9 @@ void PSTextureEncoder::Shutdown() SAFE_RELEASE(m_classLinkage); SAFE_RELEASE(m_dynamicShader); - for (ComboMap::iterator it = m_staticShaders.begin(); - it != m_staticShaders.end(); ++it) + for (auto& it : m_staticShaders) { - SAFE_RELEASE(it->second); + SAFE_RELEASE(it.second); } m_staticShaders.clear(); |
