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

@@ -15,7 +15,7 @@ TextureAndGeometryChangePacket::TextureAndGeometryChangePacket()
dwSkinID = 0;
}
TextureAndGeometryChangePacket::TextureAndGeometryChangePacket(shared_ptr<Entity> e, const wstring &path)
TextureAndGeometryChangePacket::TextureAndGeometryChangePacket(std::shared_ptr<Entity> e, const wstring &path)
{
id = e->entityId;
this->path = path;
@@ -28,26 +28,26 @@ TextureAndGeometryChangePacket::TextureAndGeometryChangePacket(shared_ptr<Entity
}
void TextureAndGeometryChangePacket::read(DataInputStream *dis) //throws IOException
void TextureAndGeometryChangePacket::read(DataInputStream *dis) //throws IOException
{
id = dis->readInt();
dwSkinID = dis->readInt();
path = dis->readUTF();
}
void TextureAndGeometryChangePacket::write(DataOutputStream *dos) //throws IOException
void TextureAndGeometryChangePacket::write(DataOutputStream *dos) //throws IOException
{
dos->writeInt(id);
dos->writeInt(dwSkinID);
dos->writeUTF(path);
}
void TextureAndGeometryChangePacket::handle(PacketListener *listener)
void TextureAndGeometryChangePacket::handle(PacketListener *listener)
{
listener->handleTextureAndGeometryChange(shared_from_this());
}
int TextureAndGeometryChangePacket::getEstimatedSize()
int TextureAndGeometryChangePacket::getEstimatedSize()
{
return 8 + (int)path.size();
}