summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-12 12:05:23 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-12 14:12:21 +0100
commit506b5a295072e59f5f80a7183d8ce5aecb96d7fa (patch)
tree5090f56bd0442efa17d35b8d46bf0943ec210542
parent2a195009f69fbd2accc658a87e234d991bee5d80 (diff)
Move OSL_ENSURE(0,...) to OSL_FAIL(...)
-rw-r--r--sdext/source/pdfimport/tree/drawtreevisiting.cxx2
-rw-r--r--sdext/source/pdfimport/tree/writertreevisiting.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sdext/source/pdfimport/tree/drawtreevisiting.cxx b/sdext/source/pdfimport/tree/drawtreevisiting.cxx
index 155c569..c4d7ccc 100644
--- a/sdext/source/pdfimport/tree/drawtreevisiting.cxx
+++ b/sdext/source/pdfimport/tree/drawtreevisiting.cxx
@@ -671,7 +671,7 @@ void DrawXmlOptimizer::optimizeTextElements(Element& rParent)
{
if( rParent.Children.empty() ) // this should not happen
{
- OSL_ENSURE( 0, "empty paragraph optimized" );
+ OSL_FAIL( "empty paragraph optimized" );
return;
}
diff --git a/sdext/source/pdfimport/tree/writertreevisiting.cxx b/sdext/source/pdfimport/tree/writertreevisiting.cxx
index 0585dee..cb80dd2 100644
--- a/sdext/source/pdfimport/tree/writertreevisiting.cxx
+++ b/sdext/source/pdfimport/tree/writertreevisiting.cxx
@@ -729,7 +729,7 @@ void WriterXmlOptimizer::optimizeTextElements(Element& rParent)
{
if( rParent.Children.empty() ) // this should not happen
{
- OSL_ENSURE( 0, "empty paragraph optimized" );
+ OSL_FAIL( "empty paragraph optimized" );
return;
}