aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/StitchSlot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.Client/StitchSlot.cpp')
-rw-r--r--Minecraft.Client/StitchSlot.cpp17
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