mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Use the "nullptr" literal.
"nullptr" should be used to denote the null pointer
This commit is contained in:
@@ -264,7 +264,7 @@ int CHighScoreInputScreen::addEntry(std::string text) {
|
||||
newNode["scenarioName"].String() = calc.calculate().cheater ? CGI->generaltexth->translate("core.genrltxt.260") : calc.parameters[0].scenarioName;
|
||||
newNode["days"].Integer() = calc.calculate().sumDays;
|
||||
newNode["points"].Integer() = calc.calculate().cheater ? 0 : calc.calculate().total;
|
||||
newNode["datetime"].String() = vstd::getFormattedDateTime(std::time(0));
|
||||
newNode["datetime"].String() = vstd::getFormattedDateTime(std::time(nullptr));
|
||||
newNode["posFlag"].Bool() = true;
|
||||
|
||||
baseNode.push_back(newNode);
|
||||
|
||||
Reference in New Issue
Block a user