From f3dd0938ff3fadd9535b04bcd104469bd2b8a33c Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Tue, 5 Jun 2012 10:13:52 +0100 Subject: [PATCH] Changed a remaining Hub to Context --- 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 ) {