mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-11 19:53:52 +00:00
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:
parent
d63f79325f
commit
7074f35e4b
1373 changed files with 12054 additions and 12054 deletions
|
|
@ -89,14 +89,14 @@ void TileEntity::tick()
|
|||
{
|
||||
}
|
||||
|
||||
shared_ptr<TileEntity> TileEntity::loadStatic(CompoundTag *tag)
|
||||
std::shared_ptr<TileEntity> TileEntity::loadStatic(CompoundTag *tag)
|
||||
{
|
||||
shared_ptr<TileEntity> entity = nullptr;
|
||||
std::shared_ptr<TileEntity> entity = nullptr;
|
||||
|
||||
//try
|
||||
//{
|
||||
AUTO_VAR(it, idCreateMap.find(tag->getString(L"id")));
|
||||
if (it != idCreateMap.end() ) entity = shared_ptr<TileEntity>(it->second());
|
||||
if (it != idCreateMap.end() ) entity = std::shared_ptr<TileEntity>(it->second());
|
||||
//}
|
||||
//catch (Exception e)
|
||||
//{
|
||||
|
|
@ -152,7 +152,7 @@ Tile *TileEntity::getTile()
|
|||
return tile;
|
||||
}
|
||||
|
||||
shared_ptr<Packet> TileEntity::getUpdatePacket()
|
||||
std::shared_ptr<Packet> TileEntity::getUpdatePacket()
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
|
@ -200,7 +200,7 @@ void TileEntity::upgradeRenderRemoveStage()
|
|||
}
|
||||
|
||||
// 4J Added
|
||||
void TileEntity::clone(shared_ptr<TileEntity> tileEntity)
|
||||
void TileEntity::clone(std::shared_ptr<TileEntity> tileEntity)
|
||||
{
|
||||
tileEntity->level = this->level;
|
||||
tileEntity->x = this->x;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue