refactor: unglob std::shared_ptr

This commit is contained in:
Tropical
2026-03-06 11:20:45 -06:00
parent 0dd1654dec
commit 67ceccf2d4
1065 changed files with 5754 additions and 5749 deletions

View File

@@ -84,14 +84,14 @@ void SignTileEntity::load(CompoundTag *tag)
setChanged();
}
shared_ptr<Packet> SignTileEntity::getUpdatePacket()
std::shared_ptr<Packet> SignTileEntity::getUpdatePacket()
{
wstring copy[MAX_SIGN_LINES];
for (int i = 0; i < MAX_SIGN_LINES; i++)
{
copy[i] = m_wsmessages[i];
}
return shared_ptr<SignUpdatePacket>( new SignUpdatePacket(x, y, z, m_bVerified, m_bCensored, copy) );
return std::shared_ptr<SignUpdatePacket>( new SignUpdatePacket(x, y, z, m_bVerified, m_bCensored, copy) );
}
bool SignTileEntity::isEditable()
@@ -183,9 +183,9 @@ int SignTileEntity::StringVerifyCallback(LPVOID lpParam,STRING_VERIFY_RESPONSE *
}
// 4J Added
shared_ptr<TileEntity> SignTileEntity::clone()
std::shared_ptr<TileEntity> SignTileEntity::clone()
{
shared_ptr<SignTileEntity> result = shared_ptr<SignTileEntity>( new SignTileEntity() );
std::shared_ptr<SignTileEntity> result = std::shared_ptr<SignTileEntity>( new SignTileEntity() );
TileEntity::clone(result);
result->m_wsmessages[0] = m_wsmessages[0];