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

@@ -12,7 +12,7 @@ EGameCommand ToggleDownfallCommand::getId()
return eGameCommand_ToggleDownfall;
}
void ToggleDownfallCommand::execute(shared_ptr<CommandSender> source, byteArray commandData)
void ToggleDownfallCommand::execute(std::shared_ptr<CommandSender> source, byteArray commandData)
{
doToggleDownfall();
logAdminAction(source, ChatPacket::e_ChatCustom, L"commands.downfall.success");
@@ -24,7 +24,7 @@ void ToggleDownfallCommand::doToggleDownfall()
MinecraftServer::getInstance()->levels[0]->getLevelData()->setThundering(true);
}
shared_ptr<GameCommandPacket> ToggleDownfallCommand::preparePacket()
std::shared_ptr<GameCommandPacket> ToggleDownfallCommand::preparePacket()
{
return shared_ptr<GameCommandPacket>( new GameCommandPacket(eGameCommand_ToggleDownfall, byteArray() ));
return std::shared_ptr<GameCommandPacket>( new GameCommandPacket(eGameCommand_ToggleDownfall, byteArray() ));
}