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

@@ -23,7 +23,7 @@ bool TakeFlowerGoal::canUse()
if (villager->getAge() >= 0) return false;
if (!villager->level->isDay()) return false;
vector<shared_ptr<Entity> > *golems = villager->level->getEntitiesOfClass(typeid(VillagerGolem), villager->bb->grow(6, 2, 6));
vector<std::shared_ptr<Entity> > *golems = villager->level->getEntitiesOfClass(typeid(VillagerGolem), villager->bb->grow(6, 2, 6));
if (golems->size() == 0)
{
delete golems;
@@ -33,7 +33,7 @@ bool TakeFlowerGoal::canUse()
//for (Entity e : golems)
for(AUTO_VAR(it,golems->begin()); it != golems->end(); ++it)
{
shared_ptr<VillagerGolem> vg = dynamic_pointer_cast<VillagerGolem>(*it);
std::shared_ptr<VillagerGolem> vg = dynamic_pointer_cast<VillagerGolem>(*it);
if (vg->getOfferFlowerTick() > 0)
{
golem = weak_ptr<VillagerGolem>(vg);