mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-25 14:09:26 +00:00
Changed a remaining Hub to Context
This commit is contained in:
parent
535edcb73b
commit
f3dd0938ff
1 changed files with 6 additions and 6 deletions
|
@ -18,12 +18,12 @@
|
||||||
namespace Catch {
|
namespace Catch {
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
Context* currentHub = NULL;
|
Context* currentContext = NULL;
|
||||||
}
|
}
|
||||||
IMutableContext& getCurrentMutableContext() {
|
IMutableContext& getCurrentMutableContext() {
|
||||||
if( !currentHub )
|
if( !currentContext )
|
||||||
currentHub = new Context();
|
currentContext = new Context();
|
||||||
return *currentHub;
|
return *currentContext;
|
||||||
}
|
}
|
||||||
IContext& getCurrentContext() {
|
IContext& getCurrentContext() {
|
||||||
return getCurrentMutableContext();
|
return getCurrentMutableContext();
|
||||||
|
@ -36,8 +36,8 @@ namespace Catch {
|
||||||
{}
|
{}
|
||||||
|
|
||||||
void Context::cleanUp() {
|
void Context::cleanUp() {
|
||||||
delete currentHub;
|
delete currentContext;
|
||||||
currentHub = NULL;
|
currentContext = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Context::setRunner( IRunner* runner ) {
|
void Context::setRunner( IRunner* runner ) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue