diff options
| author | Axel Huebl | 2018-07-12 14:27:06 +0200 |
|---|---|---|
| committer | Axel Huebl | 2018-07-12 14:27:06 +0200 |
| commit | 5347ff9e5f7e9160642f6f0a4c28fd0a13a7eed8 (patch) | |
| tree | a4ed829c1c9c7b7bf1016b14166a9ab50a623c9b /include/internal/catch_context.cpp | |
| parent | 76790604f523f7fb63741aca5fc7fc1cbc140763 (diff) | |
| download | catch3-5347ff9e5f7e9160642f6f0a4c28fd0a13a7eed8.tar.gz | |
Refactor: override implies virtual
If not used with `final`, override implies `virtual`.
Detected via CodeFactor score.
Another reference on SO:
https://stackoverflow.com/questions/43466863/isnt-virtual-keyword-redundant-when-override-or-final-specifiers-are-used
Diffstat (limited to 'include/internal/catch_context.cpp')
| -rw-r--r-- | include/internal/catch_context.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/internal/catch_context.cpp b/include/internal/catch_context.cpp index e116f28f..52fca302 100644 --- a/include/internal/catch_context.cpp +++ b/include/internal/catch_context.cpp @@ -13,27 +13,27 @@ namespace Catch { class Context : public IMutableContext, NonCopyable { public: // IContext - virtual IResultCapture* getResultCapture() override { + IResultCapture* getResultCapture() override { return m_resultCapture; } - virtual IRunner* getRunner() override { + IRunner* getRunner() override { return m_runner; } - virtual IConfigPtr const& getConfig() const override { + IConfigPtr const& getConfig() const override { return m_config; } - virtual ~Context() override; + ~Context() override; public: // IMutableContext - virtual void setResultCapture( IResultCapture* resultCapture ) override { + void setResultCapture( IResultCapture* resultCapture ) override { m_resultCapture = resultCapture; } - virtual void setRunner( IRunner* runner ) override { + void setRunner( IRunner* runner ) override { m_runner = runner; } - virtual void setConfig( IConfigPtr const& config ) override { + void setConfig( IConfigPtr const& config ) override { m_config = config; } |