diff options
author | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2010-11-25 17:08:45 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2010-11-25 17:12:34 +0100 |
commit | df07d391d83966cf2369ac7fec8d0b88cbe49bcf (patch) | |
tree | dfba6829252f68ebb66a4aeffb04196ff81f6498 /sw/source/core/layout/newfrm.cxx | |
parent | 228904385d4b23962361bbd2753a46256fba1ad9 (diff) |
Removed DBG_UTIL from sw
* Fixed the different dbglevel builds
* This needed to change all the sw local ASSERT to OSL_ENSURE...
Diffstat (limited to 'sw/source/core/layout/newfrm.cxx')
-rw-r--r-- | sw/source/core/layout/newfrm.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/core/layout/newfrm.cxx b/sw/source/core/layout/newfrm.cxx index f58cb6d015..48d422f2bd 100644 --- a/sw/source/core/layout/newfrm.cxx +++ b/sw/source/core/layout/newfrm.cxx @@ -309,7 +309,7 @@ void _FrmInit() { SwRootFrm::pVout = new SwLayVout(); SwCache *pNew = new SwCache( 100, 100 -#ifdef DBG_UTIL +#if OSL_DEBUG_LEVEL > 1 , "static SwBorderAttrs::pCache" #endif ); @@ -320,13 +320,13 @@ void _FrmInit() void _FrmFinit() { -#ifdef DBG_UTIL +#if OSL_DEBUG_LEVEL > 1 // im Chache duerfen nur noch 0-Pointer stehen for( USHORT n = SwFrm::GetCachePtr()->Count(); n; ) if( (*SwFrm::GetCachePtr())[ --n ] ) { SwCacheObj* pObj = (*SwFrm::GetCachePtr())[ n ]; - ASSERT( !pObj, "Wer hat sich nicht ausgetragen?") + OSL_ENSURE( !pObj, "Wer hat sich nicht ausgetragen?"); } #endif delete SwRootFrm::pVout; @@ -348,7 +348,7 @@ SV_IMPL_PTRARR_SORT(SwCurrShells,CurrShellPtr) CurrShell::CurrShell( ViewShell *pNew ) { - ASSERT( pNew, "0-Shell einsetzen?" ); + OSL_ENSURE( pNew, "0-Shell einsetzen?" ); pRoot = pNew->GetLayout(); if ( pRoot ) { @@ -561,7 +561,7 @@ SwRootFrm::~SwRootFrm() delete pCurrShells; - ASSERT( 0==nAccessibleShells, "Some accessible shells are left" ); + OSL_ENSURE( 0==nAccessibleShells, "Some accessible shells are left" ); } /************************************************************************* |