mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-17 23:39:01 +00:00
refactor: expand AUTO_VAR macro
This commit is contained in:
@@ -73,7 +73,7 @@ void Stitcher::stitch() {
|
||||
stitchedTexture = NULL;
|
||||
|
||||
// for (int i = 0; i < textureHolders.length; i++)
|
||||
for (AUTO_VAR(it, texturesToBeStitched.begin());
|
||||
for (auto it = texturesToBeStitched.begin();
|
||||
it != texturesToBeStitched.end(); ++it) {
|
||||
TextureHolder* textureHolder = *it; // textureHolders[i];
|
||||
|
||||
@@ -91,7 +91,7 @@ std::vector<StitchSlot*>* Stitcher::gatherAreas() {
|
||||
std::vector<StitchSlot*>* result = new std::vector<StitchSlot*>();
|
||||
|
||||
// for (StitchSlot slot : storage)
|
||||
for (AUTO_VAR(it, storage.begin()); it != storage.end(); ++it) {
|
||||
for (auto it = storage.begin(); it != storage.end(); ++it) {
|
||||
StitchSlot* slot = *it;
|
||||
slot->collectAssignments(result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user