From 8df458f869d38e7cc3657c03962a0fa19ecffdf1 Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Sun, 9 Feb 2020 12:05:27 +0100 Subject: [PATCH] BBVS: Add override keywords --- engines/bbvs/bbvs.h | 4 ++-- engines/bbvs/detection.cpp | 14 +++++++------- engines/bbvs/dialogs.h | 6 +++--- engines/bbvs/minigames/bbairguitar.h | 2 +- engines/bbvs/minigames/bbant.h | 2 +- engines/bbvs/minigames/bbloogie.h | 2 +- engines/bbvs/minigames/bbtennis.h | 2 +- 7 files changed, 16 insertions(+), 16 deletions(-) diff --git a/engines/bbvs/bbvs.h b/engines/bbvs/bbvs.h index b8171b8637b..728dc68f508 100644 --- a/engines/bbvs/bbvs.h +++ b/engines/bbvs/bbvs.h @@ -219,10 +219,10 @@ static const int8 kWalkTurnTbl[] = { class BbvsEngine : public Engine { protected: Common::Error run() override; - virtual bool hasFeature(EngineFeature f) const override; + bool hasFeature(EngineFeature f) const override; public: BbvsEngine(OSystem *syst, const ADGameDescription *gd); - ~BbvsEngine(); + ~BbvsEngine() override; void newGame(); void continueGameFromQuickSave(); void setNewSceneNum(int newSceneNum); diff --git a/engines/bbvs/detection.cpp b/engines/bbvs/detection.cpp index 5f7dbaac18c..ae0b499c256 100644 --- a/engines/bbvs/detection.cpp +++ b/engines/bbvs/detection.cpp @@ -77,20 +77,20 @@ public: return "bbvs"; } - virtual const char *getName() const override { + const char *getName() const override { return "MTV's Beavis and Butt-head in Virtual Stupidity"; } - virtual const char *getOriginalCopyright() const override { + const char *getOriginalCopyright() const override { return "(C) 1995 Viacom New Media"; } - virtual bool hasFeature(MetaEngineFeature f) const override; - virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const override; - virtual int getMaximumSaveSlot() const override; - virtual SaveStateList listSaves(const char *target) const override; + bool hasFeature(MetaEngineFeature f) const override; + bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const override; + int getMaximumSaveSlot() const override; + SaveStateList listSaves(const char *target) const override; SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const override; - virtual void removeSaveState(const char *target, int slot) const override; + void removeSaveState(const char *target, int slot) const override; }; bool BbvsMetaEngine::hasFeature(MetaEngineFeature f) const { diff --git a/engines/bbvs/dialogs.h b/engines/bbvs/dialogs.h index f95fc13ae5a..a4b031aabb4 100644 --- a/engines/bbvs/dialogs.h +++ b/engines/bbvs/dialogs.h @@ -62,10 +62,10 @@ enum { class MainMenu : public GUI::Dialog { public: MainMenu(BbvsEngine *vm); - ~MainMenu(); + ~MainMenu() override; - void reflowLayout(); - void handleCommand(GUI::CommandSender *sender, uint32 command, uint32 data); + void reflowLayout() override; + void handleCommand(GUI::CommandSender *sender, uint32 command, uint32 data) override; protected: BbvsEngine *_vm; diff --git a/engines/bbvs/minigames/bbairguitar.h b/engines/bbvs/minigames/bbairguitar.h index dddc1d03ad8..0f6d29e0537 100644 --- a/engines/bbvs/minigames/bbairguitar.h +++ b/engines/bbvs/minigames/bbairguitar.h @@ -30,7 +30,7 @@ namespace Bbvs { class MinigameBbAirGuitar : public Minigame { public: MinigameBbAirGuitar(BbvsEngine *vm) : Minigame(vm) {}; - bool run(bool fromMainGame); + bool run(bool fromMainGame) override; public: struct Obj { diff --git a/engines/bbvs/minigames/bbant.h b/engines/bbvs/minigames/bbant.h index 663762964c6..6605bbcf89b 100644 --- a/engines/bbvs/minigames/bbant.h +++ b/engines/bbvs/minigames/bbant.h @@ -30,7 +30,7 @@ namespace Bbvs { class MinigameBbAnt : public Minigame { public: MinigameBbAnt(BbvsEngine *vm) : Minigame(vm) {}; - bool run(bool fromMainGame); + bool run(bool fromMainGame) override; public: struct Obj { diff --git a/engines/bbvs/minigames/bbloogie.h b/engines/bbvs/minigames/bbloogie.h index a68dfa8eba7..3570d699299 100644 --- a/engines/bbvs/minigames/bbloogie.h +++ b/engines/bbvs/minigames/bbloogie.h @@ -30,7 +30,7 @@ namespace Bbvs { class MinigameBbLoogie : public Minigame { public: MinigameBbLoogie(BbvsEngine *vm) : Minigame(vm) {}; - bool run(bool fromMainGame); + bool run(bool fromMainGame) override; public: struct Obj { diff --git a/engines/bbvs/minigames/bbtennis.h b/engines/bbvs/minigames/bbtennis.h index bedad285297..6c5e9da7244 100644 --- a/engines/bbvs/minigames/bbtennis.h +++ b/engines/bbvs/minigames/bbtennis.h @@ -30,7 +30,7 @@ namespace Bbvs { class MinigameBbTennis : public Minigame { public: MinigameBbTennis(BbvsEngine *vm) : Minigame(vm) {}; - bool run(bool fromMainGame); + bool run(bool fromMainGame) override; public: struct Obj {