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:
@@ -33,7 +33,7 @@ bool VineTile::isCubeShaped()
|
||||
return false;
|
||||
}
|
||||
|
||||
void VineTile::updateShape(LevelSource *level, int x, int y, int z, int forceData, shared_ptr<TileEntity> forceEntity) // 4J added forceData, forceEntity param
|
||||
void VineTile::updateShape(LevelSource *level, int x, int y, int z, int forceData, std::shared_ptr<TileEntity> forceEntity) // 4J added forceData, forceEntity param
|
||||
{
|
||||
const float thickness = 1.0f / 16.0f;
|
||||
|
||||
@@ -368,7 +368,7 @@ int VineTile::getResourceCount(Random *random)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void VineTile::playerDestroy(Level *level, shared_ptr<Player>player, int x, int y, int z, int data)
|
||||
void VineTile::playerDestroy(Level *level, std::shared_ptr<Player>player, int x, int y, int z, int data)
|
||||
{
|
||||
if (!level->isClientSide && player->getSelectedItem() != NULL && player->getSelectedItem()->id == Item::shears->id)
|
||||
{
|
||||
@@ -378,7 +378,7 @@ void VineTile::playerDestroy(Level *level, shared_ptr<Player>player, int x, int
|
||||
);
|
||||
|
||||
// drop leaf block instead of sapling
|
||||
popResource(level, x, y, z, shared_ptr<ItemInstance>(new ItemInstance(Tile::vine, 1, 0)));
|
||||
popResource(level, x, y, z, std::shared_ptr<ItemInstance>(new ItemInstance(Tile::vine, 1, 0)));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user