diff options
Diffstat (limited to 'src/context/context.cpp')
-rw-r--r-- | src/context/context.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/context/context.cpp b/src/context/context.cpp index 8e87741b5..d2e2bfa1b 100644 --- a/src/context/context.cpp +++ b/src/context/context.cpp @@ -175,17 +175,7 @@ ContextObj* ContextObj::restoreAndContinue() { } -ContextObj::ContextObj(Context* pContext) : - d_pContextObjRestore(NULL) { - - Assert(pContext != NULL, "NULL context pointer"); - - d_pScope = pContext->getBottomScope(); - d_pScope->addToChain(this); -} - - -ContextObj::~ContextObj() throw(AssertionException) { +void ContextObj::destroy() throw(AssertionException) { for(;;) { if(next() != NULL) { next()->prev() = prev(); @@ -199,6 +189,16 @@ ContextObj::~ContextObj() throw(AssertionException) { } +ContextObj::ContextObj(Context* pContext) : + d_pContextObjRestore(NULL) { + + Assert(pContext != NULL, "NULL context pointer"); + + d_pScope = pContext->getBottomScope(); + d_pScope->addToChain(this); +} + + ContextNotifyObj::ContextNotifyObj(Context* pContext, bool preNotify) { if(preNotify) { pContext->addNotifyObjPre(this); |