Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPhil Nash2012-06-05 10:13:52 +0100
committerPhil Nash2012-06-05 10:13:52 +0100
commitf3dd0938ff3fadd9535b04bcd104469bd2b8a33c (patch)
treec04dae9b06999c6a872818ffd5475c5b0ac936e8
parent535edcb73b851c0504622b1dc4f16bbfe0f3630b (diff)
downloadcatch3-f3dd0938ff3fadd9535b04bcd104469bd2b8a33c.tar.gz
Changed a remaining Hub to Context
-rw-r--r--include/internal/catch_context_impl.hpp12
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 ) {