mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-23 18:13:52 +00:00
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:
parent
d63f79325f
commit
7074f35e4b
1373 changed files with 12054 additions and 12054 deletions
|
|
@ -23,7 +23,7 @@ bool DetectorRailTile::isSignalSource()
|
|||
return true;
|
||||
}
|
||||
|
||||
void DetectorRailTile::entityInside(Level *level, int x, int y, int z, shared_ptr<Entity> entity)
|
||||
void DetectorRailTile::entityInside(Level *level, int x, int y, int z, std::shared_ptr<Entity> entity)
|
||||
{
|
||||
if (level->isClientSide)
|
||||
{
|
||||
|
|
@ -69,7 +69,7 @@ void DetectorRailTile::checkPressed(Level *level, int x, int y, int z, int curre
|
|||
bool shouldBePressed = false;
|
||||
|
||||
float b = 2 / 16.0f;
|
||||
vector<shared_ptr<Entity> > *entities = level->getEntitiesOfClass(typeid(Minecart), AABB::newTemp(x + b, y, z + b, x + 1 - b, y + 1 - b, z + 1 - b));
|
||||
vector<std::shared_ptr<Entity> > *entities = level->getEntitiesOfClass(typeid(Minecart), AABB::newTemp(x + b, y, z + b, x + 1 - b, y + 1 - b, z + 1 - b));
|
||||
if (!entities->empty())
|
||||
{
|
||||
shouldBePressed = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue