refactor: expand AUTO_VAR macro

This commit is contained in:
Tropical
2026-03-29 23:59:05 -05:00
parent a330ecdcbb
commit e45151ae64
201 changed files with 1051 additions and 1055 deletions

View File

@@ -47,7 +47,7 @@ void StructureFeatureIO::staticCtor() {
}
std::wstring StructureFeatureIO::getEncodeId(StructureStart* start) {
AUTO_VAR(it, startClassIdMap.find(start->GetType()));
auto it = startClassIdMap.find(start->GetType());
if (it != startClassIdMap.end()) {
return it->second;
} else {
@@ -56,7 +56,7 @@ std::wstring StructureFeatureIO::getEncodeId(StructureStart* start) {
}
std::wstring StructureFeatureIO::getEncodeId(StructurePiece* piece) {
AUTO_VAR(it, pieceClassIdMap.find(piece->GetType()));
auto it = pieceClassIdMap.find(piece->GetType());
if (it != pieceClassIdMap.end()) {
return it->second;
} else {
@@ -68,7 +68,7 @@ StructureStart* StructureFeatureIO::loadStaticStart(CompoundTag* tag,
Level* level) {
StructureStart* start = NULL;
AUTO_VAR(it, startIdClassMap.find(tag->getString(L"id")));
auto it = startIdClassMap.find(tag->getString(L"id"));
if (it != startIdClassMap.end()) {
start = (it->second)();
}
@@ -86,7 +86,7 @@ StructurePiece* StructureFeatureIO::loadStaticPiece(CompoundTag* tag,
Level* level) {
StructurePiece* piece = NULL;
AUTO_VAR(it, pieceIdClassMap.find(tag->getString(L"id")));
auto it = pieceIdClassMap.find(tag->getString(L"id"));
if (it != pieceIdClassMap.end()) {
piece = (it->second)();
}