mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-21 00:19:29 +02:00
Code style: use parentheses for creating heap-based objects (#344)
This commit is contained in:
@ -269,8 +269,8 @@ float CLegacyConfigParser::readNumber()
|
||||
|
||||
std::istringstream stream(input);
|
||||
|
||||
if (input.find(',') != std::string::npos) // code to handle conversion with comma as decimal separator
|
||||
stream.imbue(std::locale(std::locale(), new LocaleWithComma));
|
||||
if(input.find(',') != std::string::npos) // code to handle conversion with comma as decimal separator
|
||||
stream.imbue(std::locale(std::locale(), new LocaleWithComma()));
|
||||
|
||||
float result;
|
||||
if ( !(stream >> result) )
|
||||
|
Reference in New Issue
Block a user