summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/animationnodes/nodetools.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow/source/engine/animationnodes/nodetools.cxx')
-rw-r--r--slideshow/source/engine/animationnodes/nodetools.cxx14
1 files changed, 9 insertions, 5 deletions
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