summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/number.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2011-11-24 00:52:09 +0100
committerMichael Stahl <mstahl@redhat.com>2011-11-24 00:52:09 +0100
commitae64bf305155b40af138e490e524e34a74ba6ad7 (patch)
treea75ca6fa2a6736a0747debd760dfecb155a7c6ad /sw/source/core/doc/number.cxx
parent772063ba8ad6b18f609cdc7da02534c15b785965 (diff)
sw: remove debug instance counting
There are various classes that in DBG_UTIL mode count their instances with a global variable, and give each instance a unique serial number. The purpose of this exercise is somewhat unclear to me. This removes the instance counting from: SwNumberTree, SwIndex, SwNodeIndex, SwNumRule
Diffstat (limited to 'sw/source/core/doc/number.cxx')
-rw-r--r--sw/source/core/doc/number.cxx11
1 files changed, 0 insertions, 11 deletions
diff --git a/sw/source/core/doc/number.cxx b/sw/source/core/doc/number.cxx
index 8f1d281c67a5..18195cc0f6d5 100644
--- a/sw/source/core/doc/number.cxx
+++ b/sw/source/core/doc/number.cxx
@@ -387,9 +387,6 @@ const SwFmtVertOrient* SwNumFmt::GetGraphicOrientation() const
}
}
-#ifdef DBG_UTIL
-long int SwNumRule::s_nInstances = 0;
-#endif
// handle new parameter <eDefaultNumberFormatPositionAndSpaceMode>
SwNumRule::SwNumRule( const String& rNm,
@@ -412,10 +409,6 @@ SwNumRule::SwNumRule( const String& rNm,
meDefaultNumberFormatPositionAndSpaceMode( eDefaultNumberFormatPositionAndSpaceMode ),
msDefaultListId()
{
-#ifdef DBG_UTIL
- m_nSerial = s_nInstances++;
-#endif
-
if( !nRefCount++ ) // zum erstmal, also initialisiern
{
SwNumFmt* pFmt;
@@ -514,10 +507,6 @@ SwNumRule::SwNumRule( const SwNumRule& rNumRule )
meDefaultNumberFormatPositionAndSpaceMode( rNumRule.meDefaultNumberFormatPositionAndSpaceMode ),
msDefaultListId( rNumRule.msDefaultListId )
{
-#ifdef DBG_UTIL
- m_nSerial = s_nInstances++;
-#endif
-
++nRefCount;
memset( aFmts, 0, sizeof( aFmts ));
for( sal_uInt16 n = 0; n < MAXLEVEL; ++n )