diff options
| author | Phil Nash | 2012-06-05 10:13:52 +0100 |
|---|---|---|
| committer | Phil Nash | 2012-06-05 10:13:52 +0100 |
| commit | f3dd0938ff3fadd9535b04bcd104469bd2b8a33c (patch) | |
| tree | c04dae9b06999c6a872818ffd5475c5b0ac936e8 | |
| parent | 535edcb73b851c0504622b1dc4f16bbfe0f3630b (diff) | |
| download | catch3-f3dd0938ff3fadd9535b04bcd104469bd2b8a33c.tar.gz | |
Changed a remaining Hub to Context
| -rw-r--r-- | include/internal/catch_context_impl.hpp | 12 |
1 files 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 ) { |