diff options
Diffstat (limited to 'writerfilter/source/ooxml/RefAndPointer.hxx')
-rw-r--r-- | writerfilter/source/ooxml/RefAndPointer.hxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/writerfilter/source/ooxml/RefAndPointer.hxx b/writerfilter/source/ooxml/RefAndPointer.hxx index 6ccc6f419517..9472c350365d 100644 --- a/writerfilter/source/ooxml/RefAndPointer.hxx +++ b/writerfilter/source/ooxml/RefAndPointer.hxx @@ -53,6 +53,10 @@ public: RefAndPointer(ChildClass * pHandler) : mpHandler(pHandler), mRef(pHandler) { +#ifdef DEBUG_MEMORY + clog << "MEMORY:" << mpHandler->getInstanceNumber() << ":RefAndPointer" + << endl; +#endif } RefAndPointer(uno::Reference<Interface> xRef) @@ -60,11 +64,19 @@ public: { mpHandler = dynamic_cast<ChildClass *>(xRef.get()); #ifdef DEBUG_MEMORY + if (mpHandler != NULL) + clog << "MEMORY:" << mpHandler->getInstanceNumber() + << ":RefAndPointer" << endl; #endif } virtual ~RefAndPointer() { +#ifdef DEBUG_MEMORY + if (mpHandler != NULL) + clog << "MEMORY:" << mpHandler->getInstanceNumber() + << ":~RefAndPointer" << endl; +#endif } void set(ChildClass * pHandler) |