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/StitchSlot.cpp | |
| parent | 7d6658fe5b3095f35093701b5ab669ffc291e875 (diff) | |
Remove AUTO_VAR macro and _toString function (#592)
Diffstat (limited to 'Minecraft.Client/StitchSlot.cpp')
| -rw-r--r-- | Minecraft.Client/StitchSlot.cpp | 17 |
1 files changed, 4 insertions, 13 deletions
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<StitchSlot *> *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 |
