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 | c16ba8a04fd4599e439e7e039705e41691c43acb (patch) | |
tree | 66a1c67973a674245548e10ff0746d1e473a7703 /sw/source/core/docnode/ndnum.cxx | |
parent | e9eaf033646695987e218907a565b555b976c5c8 (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/docnode/ndnum.cxx')
-rw-r--r-- | sw/source/core/docnode/ndnum.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/core/docnode/ndnum.cxx b/sw/source/core/docnode/ndnum.cxx index a4a2a6b6541d..c7974c05b9a6 100644 --- a/sw/source/core/docnode/ndnum.cxx +++ b/sw/source/core/docnode/ndnum.cxx @@ -48,13 +48,13 @@ BOOL SwOutlineNodes::Seek_Entry( const SwNodePtr rSrch, USHORT* pFndPos ) const //JP 17.03.98: aufgrund des Bug 48592 - wo unter anderem nach Undo/Redo // Nodes aus dem falschen NodesArray im OutlineArray standen, // jetzt mal einen Check eingebaut. -#ifdef DBG_UTIL +#if OSL_DEBUG_LEVEL > 1 { for( USHORT n = 1; n < nO; ++n ) if( &(*this)[ n-1 ]->GetNodes() != &(*this)[ n ]->GetNodes() ) { - ASSERT( !this, "Node im falschen Outline-Array" ); + OSL_ENSURE( !this, "Node im falschen Outline-Array" ); } } #endif @@ -106,7 +106,7 @@ void SwNodes::UpdateOutlineNode(SwNode & rNd) } else { - ASSERT( false, + OSL_ENSURE( false, "<SwNodes::UpdateOutlineNode(..)> - given text node isn't in the correct nodes array. This is a serious defect -> inform OD" ); } // <-- @@ -136,7 +136,7 @@ void SwNodes::UpdateOutlineNode(SwNode & rNd) // if( 0 == nOldLevel ) //<-end, zhaojianwei // { // // nicht vorhanden, also einfuegen -// //ASSERT( !bSeekIdx, "Der Node ist schon als OutlineNode vorhanden" ); +// / OSL_ENSURE( !bSeekIdx, "Der Node ist schon als OutlineNode vorhanden" ); // // //JP 12.03.99: 63293 - Nodes vom RedlineBereich NIE aufnehmen // ULONG nNd = rNd.GetIndex(); @@ -155,7 +155,7 @@ void SwNodes::UpdateOutlineNode(SwNode & rNd) // } // else // { -// ASSERT( false, +// OSL_ENSURE( false, // "<SwNodes::UpdateOutlineNode(..)> - node <pSrch> isn't in correct nodes array. This is a serious defect -> inform OD" ); // } // // <-- |