1
0
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:
Alexander Wilms
2023-10-27 15:10:54 +00:00
parent 70acf987b4
commit f01ec55d21
19 changed files with 25 additions and 25 deletions

View File

@@ -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);