From 5450de2acd296e7c4b25e2c738f1d4f7199161b4 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Fri, 4 Aug 2017 12:13:58 +0100 Subject: [PATCH] Added some missing `override`s and removed some `virtual`s from overrides --- include/internal/catch_run_context.hpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/include/internal/catch_run_context.hpp b/include/internal/catch_run_context.hpp index 9d065ae5..0619816b 100644 --- a/include/internal/catch_run_context.hpp +++ b/include/internal/catch_run_context.hpp @@ -63,32 +63,32 @@ namespace Catch { private: // IResultCapture - virtual void assertionEnded(AssertionResult const& result) override; + void assertionEnded(AssertionResult const& result) override; - virtual bool sectionStarted( SectionInfo const& sectionInfo, Counts& assertions ) override; + bool sectionStarted( SectionInfo const& sectionInfo, Counts& assertions ) override; bool testForMissingAssertions(Counts& assertions); - virtual void sectionEnded(SectionEndInfo const& endInfo) override; + void sectionEnded(SectionEndInfo const& endInfo) override; - virtual void sectionEndedEarly(SectionEndInfo const& endInfo) override; + void sectionEndedEarly(SectionEndInfo const& endInfo) override; - virtual void pushScopedMessage(MessageInfo const& message) override; + void pushScopedMessage(MessageInfo const& message) override; - virtual void popScopedMessage(MessageInfo const& message) override; + void popScopedMessage(MessageInfo const& message) override; - virtual std::string getCurrentTestName() const override; + std::string getCurrentTestName() const override; - virtual const AssertionResult* getLastResult() const override; + const AssertionResult* getLastResult() const override; - virtual void exceptionEarlyReported() override; + void exceptionEarlyReported() override; - virtual void handleFatalErrorCondition(std::string const& message) override; + void handleFatalErrorCondition(std::string const& message) override; - virtual bool lastAssertionPassed() override; + bool lastAssertionPassed() override; - virtual void assertionPassed(); + void assertionPassed() override; - virtual void assertionRun(); + void assertionRun() override; public: // !TBD We need to do this another way!