mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-05 00:49:09 +02:00
Code style: use parentheses for creating heap-based objects (#344)
This commit is contained in:
@ -190,7 +190,7 @@ public:
|
||||
virtual ~CBaseForPGApply(){};
|
||||
template<typename U> static CBaseForPGApply *getApplier(const U * t=nullptr)
|
||||
{
|
||||
return new CApplyOnPG<U>;
|
||||
return new CApplyOnPG<U>();
|
||||
}
|
||||
};
|
||||
|
||||
@ -573,7 +573,7 @@ CSelectionScreen::CSelectionScreen(CMenuScreen::EState Type, CMenuScreen::EGameM
|
||||
CServerHandler *sh = nullptr;
|
||||
if(isHost())
|
||||
{
|
||||
sh = new CServerHandler;
|
||||
sh = new CServerHandler();
|
||||
sh->startServer();
|
||||
}
|
||||
|
||||
@ -722,7 +722,7 @@ CSelectionScreen::CSelectionScreen(CMenuScreen::EState Type, CMenuScreen::EGameM
|
||||
*serv << &uso;
|
||||
}
|
||||
|
||||
applier = new CApplier<CBaseForPGApply>;
|
||||
applier = new CApplier<CBaseForPGApply>();
|
||||
registerTypesPregamePacks(*applier);
|
||||
serverHandlingThread = new boost::thread(&CSelectionScreen::handleConnection, this);
|
||||
}
|
||||
|
Reference in New Issue
Block a user