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

@@ -119,10 +119,10 @@ void PistonPieceEntity::moveCollidedEntities(float progress, float amount)
AABB *aabb = Tile::pistonMovingPiece->getAABB(level, x, y, z, id, progress, facing);
if (aabb != NULL)
{
vector<shared_ptr<Entity> > *entities = level->getEntities(nullptr, aabb);
vector<std::shared_ptr<Entity> > *entities = level->getEntities(nullptr, aabb);
if (!entities->empty())
{
vector< shared_ptr<Entity> > collisionHolder;
vector< std::shared_ptr<Entity> > collisionHolder;
for( AUTO_VAR(it, entities->begin()); it != entities->end(); it++ )
{
collisionHolder.push_back(*it);
@@ -199,9 +199,9 @@ void PistonPieceEntity::save(CompoundTag *tag)
}
// 4J Added
shared_ptr<TileEntity> PistonPieceEntity::clone()
std::shared_ptr<TileEntity> PistonPieceEntity::clone()
{
shared_ptr<PistonPieceEntity> result = shared_ptr<PistonPieceEntity>( new PistonPieceEntity() );
std::shared_ptr<PistonPieceEntity> result = std::shared_ptr<PistonPieceEntity>( new PistonPieceEntity() );
TileEntity::clone(result);
result->id = id;