summaryrefslogtreecommitdiff
path: root/src/context/context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/context/context.cpp')
-rw-r--r--src/context/context.cpp22
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);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback