diff options
| author | Markus Engel <markus.engel@tum.de> | 2013-04-13 16:13:17 +0000 |
|---|---|---|
| committer | Markus Engel <markus.engel@tum.de> | 2013-04-13 16:13:17 +0000 |
| commit | fbdc8b84ff670c684dafc7d7d403ed01e7077e70 (patch) | |
| tree | 964a82e4e94d8d6602e90893ac51ac9e2f7ec362 /src/common-context.cpp | |
| parent | Made factory a template. (diff) | |
| download | inkscape-fbdc8b84ff670c684dafc7d7d403ed01e7077e70.tar.gz inkscape-fbdc8b84ff670c684dafc7d7d403ed01e7077e70.zip | |
Replaced casting macros for EventContext tree; added contructors.
(bzr r11608.1.96)
Diffstat (limited to 'src/common-context.cpp')
| -rw-r--r-- | src/common-context.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/common-context.cpp b/src/common-context.cpp index 1feb6ee95..fb0ddb720 100644 --- a/src/common-context.cpp +++ b/src/common-context.cpp @@ -47,9 +47,11 @@ CCommonContext::CCommonContext(SPCommonContext* commoncontext) : CEventContext(c SPCommonContext::SPCommonContext() : SPEventContext() { SPCommonContext* ctx = this; - ctx->ccommoncontext = new CCommonContext(ctx); - delete ctx->ceventcontext; - ctx->ceventcontext = ctx->ccommoncontext; + //ctx->ccommoncontext = new CCommonContext(ctx); + //delete ctx->ceventcontext; + //ctx->ceventcontext = ctx->ccommoncontext; + ctx->ccommoncontext = 0; + types.insert(typeid(SPCommonContext)); ctx->_message_context = 0; ctx->tremor = 0; |
