diff options
| author | void_17 <61356189+void2012@users.noreply.github.com> | 2026-03-06 02:11:18 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-06 02:11:18 +0700 |
| commit | 55231bb8d3e1a4e2752ac3d444c4287eb0ca4e8b (patch) | |
| tree | 953c537a5c66e328e9f4ab29626cf738112d53c0 /Minecraft.Client/TextureManager.cpp | |
| parent | 7d6658fe5b3095f35093701b5ab669ffc291e875 (diff) | |
Remove AUTO_VAR macro and _toString function (#592)
Diffstat (limited to 'Minecraft.Client/TextureManager.cpp')
| -rw-r--r-- | Minecraft.Client/TextureManager.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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<Texture *> *TextureManager::createTextures(const wstring &filename, bool drive= wstr + L"\\Common\\res\\TitleUpdate\\"; } else -#endif +#endif { drive = Minecraft::GetInstance()->skins->getDefault()->getPath(true); } |
