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:
@@ -30,9 +30,9 @@ private:
|
||||
|
||||
public:
|
||||
float bobOffs;
|
||||
|
||||
|
||||
ItemEntity(Level *level, double x, double y, double z);
|
||||
ItemEntity(Level *level, double x, double y, double z, shared_ptr<ItemInstance> item);
|
||||
ItemEntity(Level *level, double x, double y, double z, std::shared_ptr<ItemInstance> item);
|
||||
|
||||
protected:
|
||||
virtual bool makeStepSound();
|
||||
@@ -50,7 +50,7 @@ private:
|
||||
void mergeWithNeighbours();
|
||||
|
||||
public:
|
||||
bool merge(shared_ptr<ItemEntity> target);
|
||||
bool merge(std::shared_ptr<ItemEntity> target);
|
||||
void setShortLifeTime();
|
||||
virtual bool updateInWaterState();
|
||||
|
||||
@@ -61,12 +61,12 @@ public:
|
||||
virtual bool hurt(DamageSource *source, int damage);
|
||||
virtual void addAdditonalSaveData(CompoundTag *entityTag);
|
||||
virtual void readAdditionalSaveData(CompoundTag *tag);
|
||||
virtual void playerTouch(shared_ptr<Player> player);
|
||||
virtual void playerTouch(std::shared_ptr<Player> player);
|
||||
|
||||
virtual wstring getAName();
|
||||
|
||||
shared_ptr<ItemInstance> getItem();
|
||||
void setItem(shared_ptr<ItemInstance> item);
|
||||
std::shared_ptr<ItemInstance> getItem();
|
||||
void setItem(std::shared_ptr<ItemInstance> item);
|
||||
virtual bool isAttackable();
|
||||
|
||||
void setThrower(const wstring &thrower);
|
||||
|
||||
Reference in New Issue
Block a user