catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Changed a remaining Hub to Context
- Commit
f3dd0938ff3fadd9535b04bcd104469bd2b8a33c- Author
- Phil Nash ·
- Parents
535edcb73b85
Changes
include/internal/catch_context_impl.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/internal/catch_context_impl.hpp b/include/internal/catch_context_impl.hpp index 3c992016..418f330b 100644 --- a/include/internal/catch_context_impl.hpp +++ b/include/internal/catch_context_impl.hpp @@ -18,12 +18,12 @@ namespace Catch { namespace { - Context* currentHub = NULL; + Context* currentContext = NULL; } IMutableContext& getCurrentMutableContext() { - if( !currentHub ) - currentHub = new Context(); - return *currentHub; + if( !currentContext ) + currentContext = new Context(); + return *currentContext; } IContext& getCurrentContext() { return getCurrentMutableContext(); @@ -36,8 +36,8 @@ namespace Catch { {} void Context::cleanUp() { - delete currentHub; - currentHub = NULL; + delete currentContext; + currentContext = NULL; } void Context::setRunner( IRunner* runner ) {