mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +02:00
Code style: use parentheses for creating heap-based objects (#344)
This commit is contained in:
@ -294,7 +294,7 @@ CHeroHandler::CHeroHandler()
|
||||
|
||||
CHero * CHeroHandler::loadFromJson(const JsonNode & node, const std::string & identifier)
|
||||
{
|
||||
auto hero = new CHero;
|
||||
auto hero = new CHero();
|
||||
hero->identifier = identifier;
|
||||
hero->sex = node["female"].Bool();
|
||||
hero->special = node["special"].Bool();
|
||||
|
Reference in New Issue
Block a user