diff options
author | Rohan Kumar <rohankanojia420@gmail.com> | 2016-03-09 19:08:34 +0530 |
---|---|---|
committer | Björn Michaelsen <bjoern.michaelsen@canonical.com> | 2016-04-05 10:22:14 +0000 |
commit | 0452db13db40e81522fb6bc49136d25b6ffcff41 (patch) | |
tree | a072b6504fa8904831e7d7fbb83d1050cc9e7988 /svl | |
parent | a215cec969f7401b08cabb686c5b2b1d803399d0 (diff) |
tdf#91794 remove OSL_DEBUG_LEVEL > 1 conditionals
I removed OSL_DEBUG_LEVEL > 1 conditionals, replaced DBG_ASSERT to
standard assert(..) and used SAL_INFO() in some places
Change-Id: Ib6d6065e3f141e60f865fef1faacdb5598e12431
Reviewed-on: https://gerrit.libreoffice.org/23073
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/items/poolitem.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svl/source/items/poolitem.cxx b/svl/source/items/poolitem.cxx index 50a91fea09a8..90f5b739cc65 100644 --- a/svl/source/items/poolitem.cxx +++ b/svl/source/items/poolitem.cxx @@ -25,7 +25,7 @@ #include <typeinfo> -#if OSL_DEBUG_LEVEL > 1 +#if OSL_DEBUG_LEVEL > 0 static sal_uLong nItemCount = 0; const char* pw1 = "Wow! 10.000 items!"; @@ -41,7 +41,7 @@ SfxPoolItem::SfxPoolItem(sal_uInt16 const nWhich) , m_nKind(SFX_ITEMS_NONE) { DBG_ASSERT(nWhich <= SHRT_MAX, "invalid WhichId"); -#if OSL_DEBUG_LEVEL > 1 +#if OSL_DEBUG_LEVEL > 0 ++nItemCount; if ( pw1 && nItemCount>=10000 ) { @@ -77,7 +77,7 @@ SfxPoolItem::SfxPoolItem( const SfxPoolItem& rCpy ) , m_nWhich(rCpy.Which()) // call function because of ChkThis() (WTF does that mean?) , m_nKind( SFX_ITEMS_NONE ) { -#if OSL_DEBUG_LEVEL > 1 +#if OSL_DEBUG_LEVEL > 0 ++nItemCount; if ( pw1 && nItemCount>=10000 ) { @@ -112,7 +112,7 @@ SfxPoolItem::~SfxPoolItem() { DBG_ASSERT(m_nRefCount == 0 || m_nRefCount > SFX_ITEMS_MAXREF, "destroying item in use"); -#if OSL_DEBUG_LEVEL > 1 +#if OSL_DEBUG_LEVEL > 0 --nItemCount; #endif } |