aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/MemoryTracker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.Client/MemoryTracker.cpp')
-rw-r--r--Minecraft.Client/MemoryTracker.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Minecraft.Client/MemoryTracker.cpp b/Minecraft.Client/MemoryTracker.cpp
index c1652d3b..9d0b29de 100644
--- a/Minecraft.Client/MemoryTracker.cpp
+++ b/Minecraft.Client/MemoryTracker.cpp
@@ -23,8 +23,8 @@ int MemoryTracker::genTextures()
void MemoryTracker::releaseLists(int id)
{
- AUTO_VAR(it, GL_LIST_IDS.find(id));
- if( it != GL_LIST_IDS.end() )
+ auto it = GL_LIST_IDS.find(id);
+ if( it != GL_LIST_IDS.end() )
{
glDeleteLists(id, it->second);
GL_LIST_IDS.erase(it);
@@ -43,9 +43,9 @@ void MemoryTracker::releaseTextures()
void MemoryTracker::release()
{
//for (Map.Entry<Integer, Integer> entry : GL_LIST_IDS.entrySet())
- for(AUTO_VAR(it, GL_LIST_IDS.begin()); it != GL_LIST_IDS.end(); ++it)
+ for(auto& it : GL_LIST_IDS)
{
- glDeleteLists(it->first, it->second);
+ glDeleteLists(it.first, it.second);
}
GL_LIST_IDS.clear();