diff options
author | Jacek Wolszczak <shutdownrunner@gmail.com> | 2010-10-24 23:48:32 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2010-10-24 23:48:32 +0200 |
commit | 77bd3d37dd1027e8b8d67c973abb748e777ab6d1 (patch) | |
tree | 0ce1764db571b2448560234b04f3d46640610d4d /sw/source/ui/docvw/srcedtw.cxx | |
parent | 88b663b7317ef1c6239c9e5ca52b1a9ec14f1993 (diff) |
DBG_* -> OSL_ENSURE cleanup, few German -> English translations.
Diffstat (limited to 'sw/source/ui/docvw/srcedtw.cxx')
-rw-r--r-- | sw/source/ui/docvw/srcedtw.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/ui/docvw/srcedtw.cxx b/sw/source/ui/docvw/srcedtw.cxx index 75f097a39672..d1e097d2d63c 100644 --- a/sw/source/ui/docvw/srcedtw.cxx +++ b/sw/source/ui/docvw/srcedtw.cxx @@ -169,8 +169,8 @@ static void lcl_Highlight(const String& rSource, SwTextPortions& aPortionList) { //was war das denn? #if OSL_DEBUG_LEVEL > 1 - DBG_ERROR("Token nicht erkannt!"); - DBG_ERROR(ByteString(sToken, gsl_getSystemTextEncoding()).GetBuffer()); + OSL_ENSURE(false, "Token not recognised!"); + OSL_ENSURE(false, ByteString(sToken, gsl_getSystemTextEncoding()).GetBuffer()); #endif } @@ -614,7 +614,7 @@ IMPL_LINK(SwSrcEditWindow, ScrollHdl, ScrollBar*, pScroll) IMPL_LINK( SwSrcEditWindow, SyntaxTimerHdl, Timer *, pTimer ) { Time aSyntaxCheckStart; - DBG_ASSERT( pTextView, "Noch keine View, aber Syntax-Highlight ?!" ); + OSL_ENSURE( pTextView, "Noch keine View, aber Syntax-Highlight ?!" ); // pTextEngine->SetUpdateMode( FALSE ); bHighlighting = TRUE; @@ -763,13 +763,13 @@ void SwSrcEditWindow::ImpDoHighlight( const String& rSource, USHORT nLineOff ) // optimiert das die TextEngine. USHORT nLastEnd = 0; -#ifdef DBG_UTIL +#if OSL_DEBUG_LEVEL > 1 USHORT nLine = aPortionList[0].nLine; #endif for ( USHORT i = 0; i < nCount; i++ ) { SwTextPortion& r = aPortionList[i]; - DBG_ASSERT( r.nLine == nLine, "doch mehrere Zeilen ?" ); + OSL_ENSURE( r.nLine == nLine, "doch mehrere Zeilen ?" ); if ( r.nStart > r.nEnd ) // Nur bis Bug von MD behoeben continue; |