From 69a4b4beccb859806d4eccd48ec76a4b9033a8a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20M=C3=BCller?= Date: Wed, 25 Dec 2024 21:43:58 +0100 Subject: [PATCH] Add missing virtual modifiers --- include/aoc/CeresSearch.hpp | 6 +++--- include/aoc/GuardGallivant.hpp | 8 ++++---- include/aoc/HoofIt.hpp | 6 +++--- include/aoc/LanParty.hpp | 8 ++++---- include/aoc/LinesSolver.hpp | 2 +- include/aoc/MullItOver.hpp | 8 ++++---- include/aoc/PrintQueue.hpp | 8 ++++---- include/aoc/RedNosedReports.hpp | 8 ++++---- 8 files changed, 27 insertions(+), 27 deletions(-) diff --git a/include/aoc/CeresSearch.hpp b/include/aoc/CeresSearch.hpp index 36aa78c..ac63d80 100644 --- a/include/aoc/CeresSearch.hpp +++ b/include/aoc/CeresSearch.hpp @@ -23,9 +23,9 @@ class CeresSearch : public LinesSolver { public: - const std::string getPuzzleName() const override; - const std::string getInputFileName() const override; - void finish() override; + virtual const std::string getPuzzleName() const override; + virtual const std::string getInputFileName() const override; + virtual void finish() override; private: const char xmas_[4] = { 'X', 'M', 'A', 'S' }; void computeXmasCount(const Point2& start); diff --git a/include/aoc/GuardGallivant.hpp b/include/aoc/GuardGallivant.hpp index 58d91c1..b1224cf 100644 --- a/include/aoc/GuardGallivant.hpp +++ b/include/aoc/GuardGallivant.hpp @@ -21,10 +21,10 @@ class GuardGallivant : public LinesSolver { public: - const std::string getPuzzleName() const override; - const std::string getInputFileName() const override; - void processDataLine(const std::string& line) override; - void finish() override; + virtual const std::string getPuzzleName() const override; + virtual const std::string getInputFileName() const override; + virtual void processDataLine(const std::string& line) override; + virtual void finish() override; private: Point2 start_{}; void visitPosition(const Point2& current); diff --git a/include/aoc/HoofIt.hpp b/include/aoc/HoofIt.hpp index 5a35e64..5735c43 100644 --- a/include/aoc/HoofIt.hpp +++ b/include/aoc/HoofIt.hpp @@ -24,9 +24,9 @@ class HoofIt : public LinesSolver { public: - const std::string getPuzzleName() const override; - const std::string getInputFileName() const override; - void finish() override; + virtual const std::string getPuzzleName() const override; + virtual const std::string getInputFileName() const override; + virtual void finish() override; private: const char getTrailheadChar() const; const char getTrailTopChar() const; diff --git a/include/aoc/LanParty.hpp b/include/aoc/LanParty.hpp index d776534..e48f161 100644 --- a/include/aoc/LanParty.hpp +++ b/include/aoc/LanParty.hpp @@ -21,10 +21,10 @@ class LanParty : public Solver { public: - const std::string getPuzzleName() const override; - const std::string getInputFileName() const override; - void processDataLine(const std::string& line) override; - void finish() override; + virtual const std::string getPuzzleName() const override; + virtual const std::string getInputFileName() const override; + virtual void processDataLine(const std::string& line) override; + virtual void finish() override; private: Graph lan_; void computeInterconnectedThreeSetCount(const Vertex& vertexTx); diff --git a/include/aoc/LinesSolver.hpp b/include/aoc/LinesSolver.hpp index 519829d..43922e6 100644 --- a/include/aoc/LinesSolver.hpp +++ b/include/aoc/LinesSolver.hpp @@ -24,7 +24,7 @@ class LinesSolver : public Solver { public: - void processDataLine(const std::string& line) override; + virtual void processDataLine(const std::string& line) override; protected: std::vector lines{}; bool isInBounds(const Point2& point) const; diff --git a/include/aoc/MullItOver.hpp b/include/aoc/MullItOver.hpp index 9e69f7a..8da8cde 100644 --- a/include/aoc/MullItOver.hpp +++ b/include/aoc/MullItOver.hpp @@ -24,10 +24,10 @@ class MullItOver { public: MullItOver(); - const std::string getPuzzleName() const override; - const std::string getInputFileName() const override; - void processDataLine(const std::string& line) override; - void finish() override; + virtual const std::string getPuzzleName() const override; + virtual const std::string getInputFileName() const override; + virtual void processDataLine(const std::string& line) override; + virtual void finish() override; private: MullData data_; MullStates states_; diff --git a/include/aoc/PrintQueue.hpp b/include/aoc/PrintQueue.hpp index d98c78e..db1cc39 100644 --- a/include/aoc/PrintQueue.hpp +++ b/include/aoc/PrintQueue.hpp @@ -22,10 +22,10 @@ class PrintQueue { public: PrintQueue(); - const std::string getPuzzleName() const override; - const std::string getInputFileName() const override; - void processDataLine(const std::string& line) override; - void finish() override; + virtual const std::string getPuzzleName() const override; + virtual const std::string getInputFileName() const override; + virtual void processDataLine(const std::string& line) override; + virtual void finish() override; private: static const int nPages_{ 49 }; static const int maxPageNo_{ 99 }; diff --git a/include/aoc/RedNosedReports.hpp b/include/aoc/RedNosedReports.hpp index 3ab4caa..a42aef7 100644 --- a/include/aoc/RedNosedReports.hpp +++ b/include/aoc/RedNosedReports.hpp @@ -23,10 +23,10 @@ class RedNosedReports : public Solver { public: - const std::string getPuzzleName() const override; - const std::string getInputFileName() const override; - void processDataLine(const std::string& line) override; - void finish() override; + virtual const std::string getPuzzleName() const override; + virtual const std::string getInputFileName() const override; + virtual void processDataLine(const std::string& line) override; + virtual void finish() override; private: void checkLastLevel(const Slope sameSlope, const Slope otherSlope, const int delta, const int sign, RedNosedReportData& data);