diff options
Diffstat (limited to 'chart2/source/model/filter/XMLFilter.cxx')
-rw-r--r-- | chart2/source/model/filter/XMLFilter.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chart2/source/model/filter/XMLFilter.cxx b/chart2/source/model/filter/XMLFilter.cxx index d6d826db85ac..66ba3d77f8ec 100644 --- a/chart2/source/model/filter/XMLFilter.cxx +++ b/chart2/source/model/filter/XMLFilter.cxx @@ -285,7 +285,7 @@ sal_Bool SAL_CALL XMLFilter::filter( } else { - OSL_ENSURE( false, "filter() called with no document set" ); + OSL_FAIL( "filter() called with no document set" ); } return bResult; @@ -346,7 +346,7 @@ sal_Int32 XMLFilter::impl_Import( Reference< lang::XServiceInfo > xServInfo( xDocumentComp, uno::UNO_QUERY_THROW ); if( ! xServInfo->supportsService( C2U( "com.sun.star.chart2.ChartDocument" ))) { - OSL_ENSURE( false, "Import: No ChartDocument" ); + OSL_FAIL( "Import: No ChartDocument" ); return ERRCODE_SFX_GENERAL; } @@ -551,7 +551,7 @@ sal_Int32 XMLFilter::impl_ImportStream( } catch(uno::Exception&) { - OSL_ENSURE(0,"Exception caught!"); + OSL_FAIL("Exception caught!"); } } xParser->setDocumentHandler( xDocHandler ); @@ -604,7 +604,7 @@ sal_Int32 XMLFilter::impl_Export( Reference< lang::XServiceInfo > xServInfo( xDocumentComp, uno::UNO_QUERY_THROW ); if( ! xServInfo->supportsService( C2U( "com.sun.star.chart2.ChartDocument" ))) { - OSL_ENSURE( false, "Export: No ChartDocument" ); + OSL_FAIL( "Export: No ChartDocument" ); return ERRCODE_SFX_GENERAL; } @@ -649,7 +649,7 @@ sal_Int32 XMLFilter::impl_Export( } catch(uno::Exception&) { - OSL_ENSURE(0,"Exception caught!"); + OSL_FAIL("Exception caught!"); } } |