diff options
Diffstat (limited to 'slideshow/source/engine')
4 files changed, 16 insertions, 12 deletions
diff --git a/slideshow/source/engine/animationnodes/basecontainernode.cxx b/slideshow/source/engine/animationnodes/basecontainernode.cxx index cd4aa9b31756..17769f727a13 100644 --- a/slideshow/source/engine/animationnodes/basecontainernode.cxx +++ b/slideshow/source/engine/animationnodes/basecontainernode.cxx @@ -180,9 +180,9 @@ void BaseContainerNode::showState() const boost::dynamic_pointer_cast<BaseNode>(maChildren[i]); SAL_INFO("slideshow.verbose", "Node connection: n" << - reinterpret_cast<const char*>(this)+debugGetCurrentOffset() << + debugGetNodeName(this) << " -> n" << - reinterpret_cast<const char*>(pNode.get())+debugGetCurrentOffset() ); + debugGetNodeName(pNode.get())); pNode->showState(); } diff --git a/slideshow/source/engine/animationnodes/basenode.cxx b/slideshow/source/engine/animationnodes/basenode.cxx index d7af870a4f04..fd6c750f37fe 100644 --- a/slideshow/source/engine/animationnodes/basenode.cxx +++ b/slideshow/source/engine/animationnodes/basenode.cxx @@ -677,13 +677,13 @@ void BaseNode::showState() const if( eNodeState == AnimationNode::INVALID ) SAL_INFO("slideshow.verbose", "Node state: n" << - reinterpret_cast<const char*>(this)+debugGetCurrentOffset() << + debugGetNodeName(this) << " [label=\"" << getDescription() << "\",style=filled, fillcolor=\"0.5,0.2,0.5\"]"); else SAL_INFO("slideshow.verbose", "Node state: n" << - reinterpret_cast<const char*>(this)+debugGetCurrentOffset() << + debugGetNodeName(this) << " [label=\"" << getDescription() << "fillcolor=\"" << @@ -717,7 +717,7 @@ void BaseNode::showState() const if( xPropSet->getPropertyValue("Name") >>= aName ) { SAL_INFO("slideshow.verbose", "Node info: n" << - reinterpret_cast<const char*>(this)+debugGetCurrentOffset() << + debugGetNodeName(this) << ", name \"" << aName << "\""); diff --git a/slideshow/source/engine/animationnodes/nodetools.cxx b/slideshow/source/engine/animationnodes/nodetools.cxx index 1d0b122f6444..e38445bd10ea 100644 --- a/slideshow/source/engine/animationnodes/nodetools.cxx +++ b/slideshow/source/engine/animationnodes/nodetools.cxx @@ -31,11 +31,15 @@ namespace slideshow namespace internal { #if defined(DBG_UTIL) - int& debugGetCurrentOffset() - { - static int lcl_nOffset = 0; // to make each tree output distinct + static sal_Int32 lcl_nOffset = 0; - return lcl_nOffset; + OUString debugGetNodeName( const BaseNode *pNode ) + { + OUStringBuffer aBuf; + aBuf.append(lcl_nOffset); + aBuf.append(" - 0x"); + aBuf.append(reinterpret_cast<sal_Int64>(pNode), 16); + return aBuf.makeStringAndClear(); } void debugNodesShowTree( const BaseNode* pNode ) @@ -43,7 +47,7 @@ namespace slideshow if( pNode ) pNode->showState(); - ++debugGetCurrentOffset(); + ++lcl_nOffset; } #endif diff --git a/slideshow/source/engine/animationnodes/nodetools.hxx b/slideshow/source/engine/animationnodes/nodetools.hxx index cf25d793226f..55a4c4fb8e3e 100644 --- a/slideshow/source/engine/animationnodes/nodetools.hxx +++ b/slideshow/source/engine/animationnodes/nodetools.hxx @@ -45,8 +45,8 @@ namespace slideshow #if defined(DBG_UTIL) - int& debugGetCurrentOffset(); - void debugNodesShowTree( const BaseNode* ); + OUString debugGetNodeName( const BaseNode *pNode ); + void debugNodesShowTree( const BaseNode* ); #endif /** Look up an AttributableShape from ShapeManager. |