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:
@@ -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() ));
|
||||
}
|
||||
Reference in New Issue
Block a user