summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-12 16:01:34 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-12 16:01:34 +0100
commit0bd50d04cc8e67369b0263c199a8577ec89b8594 (patch)
tree68c757bc57ebdf02ef8a2bc813ced1ce35e1fa31 /svl
parent30952e0bd278f897a8d29c585fb6c417a2c9b8bf (diff)
Fix non-debug build
Diffstat (limited to 'svl')
-rw-r--r--svl/source/items/itemset.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/svl/source/items/itemset.cxx b/svl/source/items/itemset.cxx
index 5b0977748b45..20ba062cc590 100644
--- a/svl/source/items/itemset.cxx
+++ b/svl/source/items/itemset.cxx
@@ -50,7 +50,7 @@
// STATIC DATA -----------------------------------------------------------
static const USHORT nInitCount = 10; // einzelne USHORTs => 5 Paare ohne '0'
-#ifdef DBG_UTIL
+#if OSL_DEBUG_LEVEL > 1
static ULONG nRangesCopyCount = 0; // wie oft wurden Ranges kopiert
#endif
@@ -234,7 +234,9 @@ SfxItemSet::SfxItemSet( SfxItemPool& rPool,
void SfxItemSet::InitRanges_Impl(const USHORT *pWhichPairTable)
{
DBG_CHKTHIS(SfxItemSet, 0);
+ #if OSL_DEBUG_LEVEL > 1
OSL_TRACE("SfxItemSet: Ranges-CopyCount==%ul", ++nRangesCopyCount);
+ #endif
USHORT nCnt = 0;
const USHORT* pPtr = pWhichPairTable;
@@ -314,7 +316,9 @@ SfxItemSet::SfxItemSet( const SfxItemSet& rASet ):
*ppDst = &_pPool->Put( **ppSrc );
// dann noch die Which Ranges kopieren
+ #if OSL_DEBUG_LEVEL > 1
OSL_TRACE("SfxItemSet: Ranges-CopyCount==%ul", ++nRangesCopyCount);
+ #endif
std::ptrdiff_t cnt = pPtr - rASet._pWhichRanges+1;
_pWhichRanges = new USHORT[ cnt ];
memcpy( _pWhichRanges, rASet._pWhichRanges, sizeof( USHORT ) * cnt);