summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/region.cxx
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-01 19:08:19 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-02 14:46:42 +0100
commit11d20507806d30e2d1955b93a568b84a2216ef69 (patch)
treeb34fa3afac27eac9404f16e46b530aa2cbcad41d /vcl/source/gdi/region.cxx
parent7b981b7cab15e0fc2ebb159df2d40c3a2499b265 (diff)
Move DBG_ERROR to OSL_FAIL
Diffstat (limited to 'vcl/source/gdi/region.cxx')
-rw-r--r--vcl/source/gdi/region.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/vcl/source/gdi/region.cxx b/vcl/source/gdi/region.cxx
index ed58a5d90ade..a00795e2e2ce 100644
--- a/vcl/source/gdi/region.cxx
+++ b/vcl/source/gdi/region.cxx
@@ -656,7 +656,7 @@ BOOL ImplRegion::InsertPoint( const Point &rPoint, long nLineID,
mpLastCheckedBand = mpLastCheckedBand->mpNextBand;
}
- DBG_ERROR( "ImplRegion::InsertPoint reached the end of the list!" );
+ OSL_FAIL( "ImplRegion::InsertPoint reached the end of the list!" );
}
else
{
@@ -673,10 +673,10 @@ BOOL ImplRegion::InsertPoint( const Point &rPoint, long nLineID,
mpLastCheckedBand = mpLastCheckedBand->mpPrevBand;
}
- DBG_ERROR( "ImplRegion::InsertPoint reached the beginning of the list!" );
+ OSL_FAIL( "ImplRegion::InsertPoint reached the beginning of the list!" );
}
- DBG_ERROR( "ImplRegion::InsertPoint point not inserted!" );
+ OSL_FAIL( "ImplRegion::InsertPoint point not inserted!" );
// reinitialize pointer (should never be reached!)
mpLastCheckedBand = mpFirstBand;
@@ -889,7 +889,7 @@ void ImplRegion::Union( long nLeft, long nTop, long nRight, long nBottom )
{
if ( (pBand->mnYTop < nCurY) || (pBand->mnYBottom < nCurY) )
{
- DBG_ERROR( "ImplRegion::Union() - Bands not sorted!" );
+ OSL_FAIL( "ImplRegion::Union() - Bands not sorted!" );
}
pBand = pBand->mpNextBand;
}
@@ -926,7 +926,7 @@ void ImplRegion::Exclude( long nLeft, long nTop, long nRight, long nBottom )
{
if ( (pBand->mnYTop < nCurY) || (pBand->mnYBottom < nCurY) )
{
- DBG_ERROR( "ImplRegion::Exclude() - Bands not sorted!" );
+ OSL_FAIL( "ImplRegion::Exclude() - Bands not sorted!" );
}
pBand = pBand->mpNextBand;
}
@@ -963,7 +963,7 @@ void ImplRegion::XOr( long nLeft, long nTop, long nRight, long nBottom )
{
if ( (pBand->mnYTop < nCurY) || (pBand->mnYBottom < nCurY) )
{
- DBG_ERROR( "ImplRegion::XOr() - Bands not sorted!" );
+ OSL_FAIL( "ImplRegion::XOr() - Bands not sorted!" );
}
pBand = pBand->mpNextBand;
}
@@ -1054,12 +1054,12 @@ BOOL ImplRegion::OptimizeBandList()
"Exiting ImplRegion::OptimizeBandList(): empty band in region!" );
if ( pBand->mnYBottom < pBand->mnYTop )
- DBG_ERROR( "ImplRegion::OptimizeBandList(): YBottomBoundary < YTopBoundary" );
+ OSL_FAIL( "ImplRegion::OptimizeBandList(): YBottomBoundary < YTopBoundary" );
if ( pBand->mpNextBand )
{
if ( pBand->mnYBottom >= pBand->mpNextBand->mnYTop )
- DBG_ERROR( "ImplRegion::OptimizeBandList(): overlapping bands in region!" );
+ OSL_FAIL( "ImplRegion::OptimizeBandList(): overlapping bands in region!" );
}
pBand = pBand->mpNextBand;
@@ -2477,7 +2477,7 @@ SvStream& operator>>( SvStream& rIStrm, Region& rRegion )
if( rIStrm.IsEof() )
{
- DBG_ERROR( "premature end of region stream" );
+ OSL_FAIL( "premature end of region stream" );
delete rRegion.mpImplRegion;
rRegion.mpImplRegion = (ImplRegion*)&aImplEmptyRegion;
return rIStrm;