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/filter/html/htmlctxt.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/filter/html/htmlctxt.cxx')
-rw-r--r-- | sw/source/filter/html/htmlctxt.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sw/source/filter/html/htmlctxt.cxx b/sw/source/filter/html/htmlctxt.cxx index 1cb1ca15255f..049ba78cce4d 100644 --- a/sw/source/filter/html/htmlctxt.cxx +++ b/sw/source/filter/html/htmlctxt.cxx @@ -150,7 +150,7 @@ void SwHTMLParser::SplitAttrTab( const SwPosition& rNewPos ) { // Hier darf es keine vorlauefigen Absatz-Attribute geben, den die // koennten jetzt gesetzt werden und dann sind die Zeiger ungueltig!!! - ASSERT( !aParaAttrs.Count(), + OSL_ENSURE( !aParaAttrs.Count(), "Hoechste Gefahr: Es gibt noch nicht-endgueltige Absatz-Attribute" ); if( aParaAttrs.Count() ) aParaAttrs.Remove( 0, aParaAttrs.Count() ); @@ -358,7 +358,7 @@ void SwHTMLParser::EndContext( _HTMLAttrContext *pContext ) while( aContexts.Count() > nContextStMin ) { _HTMLAttrContext *pCntxt = PopContext(); - ASSERT( pCntxt != pContext, + OSL_ENSURE( pCntxt != pContext, "Kontext noch im Stack" ); if( pCntxt == pContext ) break; @@ -414,10 +414,10 @@ void SwHTMLParser::ClearContext( _HTMLAttrContext *pContext ) DeleteAttr( rAttrs[i] ); } - ASSERT( !pContext->GetSpansSection(), + OSL_ENSURE( !pContext->GetSpansSection(), "Bereich kann nicht mehr verlassen werden" ); - ASSERT( !pContext->HasSaveDocContext(), + OSL_ENSURE( !pContext->HasSaveDocContext(), "Rahmen kann nicht mehr verlassen werden" ); // PRE-/LISTING- und XMP-Umgebungen wieder starten @@ -543,7 +543,7 @@ void SwHTMLParser::InsertAttrs( SfxItemSet &rItemSet, pCSS1Parser->SetFmtBreak( rItemSet, rPropInfo ); // /Feature: PrintExt - ASSERT( aContexts.Count() <= nContextStAttrMin || + OSL_ENSURE( aContexts.Count() <= nContextStAttrMin || aContexts[aContexts.Count()-1] != pContext, "SwHTMLParser::InsertAttrs: Kontext doch schon auf dem Stack" ); @@ -588,7 +588,7 @@ void SwHTMLParser::InsertAttrs( SfxItemSet &rItemSet, // eingefuegt. if( rPropInfo.bLeftMargin ) { - ASSERT( rPropInfo.nLeftMargin < 0 || + OSL_ENSURE( rPropInfo.nLeftMargin < 0 || rPropInfo.nLeftMargin == pLRItem->GetTxtLeft(), "linker Abstand stimmt nicht mit Item ueberein" ); if( rPropInfo.nLeftMargin < 0 && @@ -599,7 +599,7 @@ void SwHTMLParser::InsertAttrs( SfxItemSet &rItemSet, } if( rPropInfo.bRightMargin ) { - ASSERT( rPropInfo.nRightMargin < 0 || + OSL_ENSURE( rPropInfo.nRightMargin < 0 || rPropInfo.nRightMargin == pLRItem->GetRight(), "rechter Abstand stimmt nicht mit Item ueberein" ); if( rPropInfo.nRightMargin < 0 && |