mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-17 16:38:44 +00:00
refactor: expand AUTO_VAR macro
This commit is contained in:
@@ -348,7 +348,7 @@ void GameRuleManager::writeRuleFile(DataOutputStream* dos) {
|
||||
std::unordered_map<std::wstring, ConsoleSchematicFile*>* files;
|
||||
files = getLevelGenerationOptions()->getUnfinishedSchematicFiles();
|
||||
dos->writeInt(files->size());
|
||||
for (AUTO_VAR(it, files->begin()); it != files->end(); it++) {
|
||||
for (auto it = files->begin(); it != files->end(); it++) {
|
||||
std::wstring filename = it->first;
|
||||
ConsoleSchematicFile* file = it->second;
|
||||
|
||||
@@ -528,7 +528,7 @@ bool GameRuleManager::readRuleFile(
|
||||
int tagId = contentDis->readInt();
|
||||
ConsoleGameRules::EGameRuleType tagVal =
|
||||
ConsoleGameRules::eGameRuleType_Invalid;
|
||||
AUTO_VAR(it, tagIdMap.find(tagId));
|
||||
auto it = tagIdMap.find(tagId);
|
||||
if (it != tagIdMap.end()) tagVal = it->second;
|
||||
|
||||
GameRuleDefinition* rule = NULL;
|
||||
@@ -601,7 +601,7 @@ void GameRuleManager::readChildren(
|
||||
int tagId = dis->readInt();
|
||||
ConsoleGameRules::EGameRuleType tagVal =
|
||||
ConsoleGameRules::eGameRuleType_Invalid;
|
||||
AUTO_VAR(it, tagIdMap->find(tagId));
|
||||
auto it = tagIdMap->find(tagId);
|
||||
if (it != tagIdMap->end()) tagVal = it->second;
|
||||
|
||||
GameRuleDefinition* childRule = NULL;
|
||||
|
||||
Reference in New Issue
Block a user