From 91e321d334c8f86729fdce4e3ce614a05e8cdada Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Sat, 13 Nov 2021 23:40:16 +0200 Subject: [PATCH] AVALANCHE: Use nullptr Using clang-tidy modernize-use-nullptr --- engines/avalanche/avalanche.cpp | 4 ++-- engines/avalanche/detection.cpp | 4 ++-- engines/avalanche/highscore.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/engines/avalanche/avalanche.cpp b/engines/avalanche/avalanche.cpp index 95506caa9d5..59712d45403 100644 --- a/engines/avalanche/avalanche.cpp +++ b/engines/avalanche/avalanche.cpp @@ -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; diff --git a/engines/avalanche/detection.cpp b/engines/avalanche/detection.cpp index 30f954d8751..a894a841a01 100644 --- a/engines/avalanche/detection.cpp +++ b/engines/avalanche/detection.cpp @@ -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, diff --git a/engines/avalanche/highscore.cpp b/engines/avalanche/highscore.cpp index 17f8b4f00c9..404e75ab5f9 100644 --- a/engines/avalanche/highscore.cpp +++ b/engines/avalanche/highscore.cpp @@ -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; }