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/StitchSlot.cpp | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'Minecraft.Client/StitchSlot.cpp') diff --git a/Minecraft.Client/StitchSlot.cpp b/Minecraft.Client/StitchSlot.cpp index 5e9700b0..cdce6128 100644 --- a/Minecraft.Client/StitchSlot.cpp +++ b/Minecraft.Client/StitchSlot.cpp @@ -120,9 +120,8 @@ bool StitchSlot::add(TextureHolder *textureHolder) } //for (final StitchSlot subSlot : subSlots) - for(AUTO_VAR(it, subSlots->begin()); it != subSlots->end(); ++it) + for ( StitchSlot *subSlot : *subSlots ) { - StitchSlot *subSlot = *it; if (subSlot->add(textureHolder)) { return true; @@ -134,23 +133,15 @@ bool StitchSlot::add(TextureHolder *textureHolder) void StitchSlot::collectAssignments(vector *result) { - if (textureHolder != NULL) + if (textureHolder) { result->push_back(this); } - else if (subSlots != NULL) + else if (subSlots) { - //for (StitchSlot subSlot : subSlots) - for(AUTO_VAR(it, subSlots->begin()); it != subSlots->end(); ++it) + for(StitchSlot *subSlot : *subSlots) { - StitchSlot *subSlot = *it; subSlot->collectAssignments(result); } } -} - -//@Override -wstring StitchSlot::toString() -{ - return L"Slot{originX=" + _toString(originX) + L", originY=" + _toString(originY) + L", width=" + _toString(width) + L", height=" + _toString(height) + L", texture=" + _toString(textureHolder) + L", subSlots=" + _toString(subSlots) + L'}'; } \ No newline at end of file -- cgit v1.2.3