mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-19 05:53:50 +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
|
|
@ -85,7 +85,7 @@ void UIScene_SignEntryMenu::tick()
|
|||
for(int i=0;i<4;i++)
|
||||
{
|
||||
wstring temp=m_textInputLines[i].getLabel();
|
||||
m_sign->SetMessage(i,temp);
|
||||
m_sign->SetMessage(i,temp);
|
||||
}
|
||||
|
||||
m_sign->setChanged();
|
||||
|
|
@ -94,10 +94,10 @@ void UIScene_SignEntryMenu::tick()
|
|||
// need to send the new data
|
||||
if (pMinecraft->level->isClientSide)
|
||||
{
|
||||
shared_ptr<MultiplayerLocalPlayer> player = pMinecraft->localplayers[m_iPad];
|
||||
std::shared_ptr<MultiplayerLocalPlayer> player = pMinecraft->localplayers[m_iPad];
|
||||
if(player != NULL && player->connection && player->connection->isStarted())
|
||||
{
|
||||
player->connection->send( shared_ptr<SignUpdatePacket>( new SignUpdatePacket(m_sign->x, m_sign->y, m_sign->z, m_sign->IsVerified(), m_sign->IsCensored(), m_sign->GetMessages()) ) );
|
||||
player->connection->send( std::shared_ptr<SignUpdatePacket>( new SignUpdatePacket(m_sign->x, m_sign->y, m_sign->z, m_sign->IsVerified(), m_sign->IsCensored(), m_sign->GetMessages()) ) );
|
||||
}
|
||||
}
|
||||
ui.CloseUIScenes(m_iPad);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue