clang-modernize -loop-convert

and some manual adjustments
This commit is contained in:
Tillmann Karras 2014-03-03 06:25:15 +01:00
parent f401263867
commit c89f04a7c5
22 changed files with 339 additions and 293 deletions

View file

@ -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();
}