Remove AUTO_VAR macro and _toString function (#592)
This commit is contained in:
@@ -37,8 +37,8 @@ void StructureFeatureIO::staticCtor()
|
||||
|
||||
wstring StructureFeatureIO::getEncodeId(StructureStart *start)
|
||||
{
|
||||
AUTO_VAR(it, startClassIdMap.find( start->GetType() ) );
|
||||
if(it != startClassIdMap.end())
|
||||
auto it = startClassIdMap.find(start->GetType());
|
||||
if(it != startClassIdMap.end())
|
||||
{
|
||||
return it->second;
|
||||
}
|
||||
@@ -50,8 +50,8 @@ wstring StructureFeatureIO::getEncodeId(StructureStart *start)
|
||||
|
||||
wstring StructureFeatureIO::getEncodeId(StructurePiece *piece)
|
||||
{
|
||||
AUTO_VAR(it, pieceClassIdMap.find( piece->GetType() ) );
|
||||
if(it != pieceClassIdMap.end())
|
||||
auto it = pieceClassIdMap.find(piece->GetType());
|
||||
if(it != pieceClassIdMap.end())
|
||||
{
|
||||
return it->second;
|
||||
}
|
||||
@@ -65,8 +65,8 @@ StructureStart *StructureFeatureIO::loadStaticStart(CompoundTag *tag, Level *lev
|
||||
{
|
||||
StructureStart *start = NULL;
|
||||
|
||||
AUTO_VAR(it, startIdClassMap.find( tag->getString(L"id") ) );
|
||||
if(it != startIdClassMap.end())
|
||||
auto it = startIdClassMap.find(tag->getString(L"id"));
|
||||
if(it != startIdClassMap.end())
|
||||
{
|
||||
start = (it->second)();
|
||||
}
|
||||
@@ -86,8 +86,8 @@ StructurePiece *StructureFeatureIO::loadStaticPiece(CompoundTag *tag, Level *lev
|
||||
{
|
||||
StructurePiece *piece = NULL;
|
||||
|
||||
AUTO_VAR(it, pieceIdClassMap.find( tag->getString(L"id") ) );
|
||||
if(it != pieceIdClassMap.end())
|
||||
auto it = pieceIdClassMap.find(tag->getString(L"id"));
|
||||
if(it != pieceIdClassMap.end())
|
||||
{
|
||||
piece = (it->second)();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user