AVALANCHE: Use nullptr

Using clang-tidy modernize-use-nullptr
This commit is contained in:
Orgad Shaneh
2021-11-14 15:51:59 +02:00
committed by Filippos Karapetis
parent 57cdbc9072
commit 91e321d334
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -360,7 +360,7 @@ bool AvalancheEngine::saveGame(const int16 slot, const Common::String &desc) {
_totalTime += getTimeInSeconds() - _startTime;
Common::Serializer sz(NULL, f);
Common::Serializer sz(nullptr, f);
synchronize(sz);
f->finalize();
delete f;
@@ -413,7 +413,7 @@ bool AvalancheEngine::loadGame(const int16 slot) {
resetAllVariables();
Common::Serializer sz(f, NULL);
Common::Serializer sz(f, nullptr);
synchronize(sz);
delete f;
+2 -2
View File
@@ -36,12 +36,12 @@ namespace Avalanche {
static const PlainGameDescriptor avalancheGames[] = {
{"avalanche", "Lord Avalot d'Argent"},
{0, 0}
{nullptr, nullptr}
};
static const ADGameDescription gameDescriptions[] = {
{
"avalanche", 0,
"avalanche", nullptr,
AD_ENTRY2s("avalot.sez", "de10eb353228013da3d3297784f81ff9", 48763,
"mainmenu.avd", "89f31211af579a872045b175cc264298", 18880),
Common::EN_ANY,
+2 -2
View File
@@ -61,7 +61,7 @@ void HighScore::saveHighScores() {
warning("Can't create file 'scores.avd', high scores are not saved.");
return;
}
Common::Serializer sz(NULL, f);
Common::Serializer sz(nullptr, f);
syncHighScores(sz);
f->finalize();
delete f;
@@ -75,7 +75,7 @@ void HighScore::loadHighScroes() {
Common::InSaveFile *f = g_system->getSavefileManager()->openForLoading("scores.avd");
if (!f)
return;
Common::Serializer sz(f, NULL);
Common::Serializer sz(f, nullptr);
syncHighScores(sz);
delete f;
}