1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

Code style: use parentheses for creating heap-based objects (#344)

This commit is contained in:
ArseniyShestakov
2017-07-16 12:58:05 +03:00
committed by GitHub
parent 21c0c95049
commit b52cfe5283
26 changed files with 59 additions and 59 deletions

View File

@@ -327,7 +327,7 @@ void CTownHandler::loadBuildingRequirements(CBuilding * building, const JsonNode
void CTownHandler::loadBuilding(CTown * town, const std::string & stringID, const JsonNode & source)
{
auto ret = new CBuilding;
auto ret = new CBuilding();
static const std::string modes [] = {"normal", "auto", "special", "grail"};
@@ -406,7 +406,7 @@ void CTownHandler::loadBuildings(CTown * town, const JsonNode & source)
void CTownHandler::loadStructure(CTown &town, const std::string & stringID, const JsonNode & source)
{
auto ret = new CStructure;
auto ret = new CStructure();
ret->building = nullptr;
ret->buildable = nullptr;
@@ -706,7 +706,7 @@ CFaction * CTownHandler::loadFromJson(const JsonNode &source, const std::string
if (!source["town"].isNull())
{
faction->town = new CTown;
faction->town = new CTown();
faction->town->faction = faction;
loadTown(*faction->town, source["town"]);
}