aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/MemoryTracker.cpp
diff options
context:
space:
mode:
authorvoid_17 <61356189+void2012@users.noreply.github.com>2026-03-06 02:11:18 +0700
committerGitHub <noreply@github.com>2026-03-06 02:11:18 +0700
commit55231bb8d3e1a4e2752ac3d444c4287eb0ca4e8b (patch)
tree953c537a5c66e328e9f4ab29626cf738112d53c0 /Minecraft.Client/MemoryTracker.cpp
parent7d6658fe5b3095f35093701b5ab669ffc291e875 (diff)
Remove AUTO_VAR macro and _toString function (#592)
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();