shared_ptr -> std::shared_ptr

This is one of the first commits in a plan to remove all `using namespace std;` lines in the entire codebase as it is considered anti-pattern today.
This commit is contained in:
void_17
2026-03-02 15:58:20 +07:00
parent d63f79325f
commit 7074f35e4b
1373 changed files with 12054 additions and 12054 deletions

View File

@@ -60,7 +60,7 @@ void TreeTile::onRemove(Level *level, int x, int y, int z, int id, int data)
}
}
void TreeTile::setPlacedBy(Level *level, int x, int y, int z, shared_ptr<Mob> by)
void TreeTile::setPlacedBy(Level *level, int x, int y, int z, std::shared_ptr<Mob> by)
{
int type = level->getData(x, y, z) & MASK_TYPE;
int dir = PistonBaseTile::getNewFacing(level, x, y, z, dynamic_pointer_cast<Player>(by));
@@ -93,7 +93,7 @@ Icon *TreeTile::getTexture(int face, int data)
if (dir == FACING_Y && (face == Facing::UP || face == Facing::DOWN))
{
return iconTop;
}
}
else if (dir == FACING_X && (face == Facing::EAST || face == Facing::WEST))
{
return iconTop;
@@ -123,10 +123,10 @@ int TreeTile::getWoodType(int data)
return data & MASK_TYPE;
}
shared_ptr<ItemInstance> TreeTile::getSilkTouchItemInstance(int data)
std::shared_ptr<ItemInstance> TreeTile::getSilkTouchItemInstance(int data)
{
// fix to avoid getting silktouched sideways logs
return shared_ptr<ItemInstance>(new ItemInstance(id, 1, getWoodType(data)));
return std::shared_ptr<ItemInstance>(new ItemInstance(id, 1, getWoodType(data)));
}
void TreeTile::registerIcons(IconRegister *iconRegister)