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

@@ -25,7 +25,7 @@ SetHealthPacket::SetHealthPacket(int health, int food, float saturation, ETeleme
this->damageSource = damageSource;
}
void SetHealthPacket::read(DataInputStream *dis) //throws IOException
void SetHealthPacket::read(DataInputStream *dis) //throws IOException
{
health = dis->readShort();
food = dis->readShort();
@@ -35,7 +35,7 @@ void SetHealthPacket::read(DataInputStream *dis) //throws IOException
damageSource = (ETelemetryChallenges)dis->readByte();
}
void SetHealthPacket::write(DataOutputStream *dos) //throws IOException
void SetHealthPacket::write(DataOutputStream *dos) //throws IOException
{
dos->writeShort(health);
dos->writeShort(food);
@@ -45,7 +45,7 @@ void SetHealthPacket::write(DataOutputStream *dos) //throws IOException
dos->writeByte(damageSource);
}
void SetHealthPacket::handle(PacketListener *listener)
void SetHealthPacket::handle(PacketListener *listener)
{
listener->handleSetHealth(shared_from_this());
}
@@ -60,7 +60,7 @@ bool SetHealthPacket::canBeInvalidated()
return true;
}
bool SetHealthPacket::isInvalidatedBy(shared_ptr<Packet> packet)
bool SetHealthPacket::isInvalidatedBy(std::shared_ptr<Packet> packet)
{
return true;
}