From 55231bb8d3e1a4e2752ac3d444c4287eb0ca4e8b Mon Sep 17 00:00:00 2001 From: void_17 <61356189+void2012@users.noreply.github.com> Date: Fri, 6 Mar 2026 02:11:18 +0700 Subject: Remove AUTO_VAR macro and _toString function (#592) --- Minecraft.Client/TextureManager.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Minecraft.Client/TextureManager.cpp') diff --git a/Minecraft.Client/TextureManager.cpp b/Minecraft.Client/TextureManager.cpp index 84b164b4..542b9499 100644 --- a/Minecraft.Client/TextureManager.cpp +++ b/Minecraft.Client/TextureManager.cpp @@ -51,9 +51,9 @@ void TextureManager::registerName(const wstring &name, Texture *texture) void TextureManager::registerTexture(Texture *texture) { - for(AUTO_VAR(it, idToTextureMap.begin()); it != idToTextureMap.end(); ++it) + for(auto& it : idToTextureMap) { - if(it->second == texture) + if(it.second == texture) { //Minecraft.getInstance().getLogger().warning("TextureManager.registerTexture called, but this texture has " + "already been registered. ignoring."); app.DebugPrintf("TextureManager.registerTexture called, but this texture has already been registered. ignoring."); @@ -66,11 +66,11 @@ void TextureManager::registerTexture(Texture *texture) void TextureManager::unregisterTexture(const wstring &name, Texture *texture) { - AUTO_VAR(it, idToTextureMap.find(texture->getManagerId())); - if(it != idToTextureMap.end()) idToTextureMap.erase(it); + auto it = idToTextureMap.find(texture->getManagerId()); + if(it != idToTextureMap.end()) idToTextureMap.erase(it); - AUTO_VAR(it2, stringToIDMap.find(name)); - if(it2 != stringToIDMap.end()) stringToIDMap.erase(it2); + auto it2 = stringToIDMap.find(name); + if(it2 != stringToIDMap.end()) stringToIDMap.erase(it2); } Stitcher *TextureManager::createStitcher(const wstring &name) @@ -110,7 +110,7 @@ vector *TextureManager::createTextures(const wstring &filename, bool drive= wstr + L"\\Common\\res\\TitleUpdate\\"; } else -#endif +#endif { drive = Minecraft::GetInstance()->skins->getDefault()->getPath(true); } -- cgit v1.2.3