diff options
| author | Martin Hořeňovský | 2019-04-18 14:10:24 +0200 |
|---|---|---|
| committer | GitHub | 2019-04-18 14:10:24 +0200 |
| commit | c3c82f539c1d31df6b7f828efe4f4ba9eb650bf7 (patch) | |
| tree | 41481404e0a30203a99f05fea7bce32c7492b410 /include/internal/catch_context.cpp | |
| parent | c7653811a66bf8f3e87506d24e2f6afd2a8f1322 (diff) | |
| parent | 5347ff9e5f7e9160642f6f0a4c28fd0a13a7eed8 (diff) | |
| download | catch3-c3c82f539c1d31df6b7f828efe4f4ba9eb650bf7.tar.gz | |
Merge pull request #1336 from ax3l/topic-overrideVirtualRedundant
Refactor: override implies virtual
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; } |