diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-03-12 11:43:16 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-03-12 14:12:37 +0100 |
commit | 7d669e4cdc6ddcb680ffb4f05b18a8925a76a6b0 (patch) | |
tree | 60c7573fef5c6868ef98cdea125d6e0ddc76dd57 /oox/source/drawingml/chart/seriesconverter.cxx | |
parent | d4ebec5c7950c2558c8efe873288e078f5d8ad31 (diff) |
Move OSL_ENSURE(false,...) to OSL_FAIL(...)
Diffstat (limited to 'oox/source/drawingml/chart/seriesconverter.cxx')
-rw-r--r-- | oox/source/drawingml/chart/seriesconverter.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/oox/source/drawingml/chart/seriesconverter.cxx b/oox/source/drawingml/chart/seriesconverter.cxx index d717413e6976..d88ca859a134 100644 --- a/oox/source/drawingml/chart/seriesconverter.cxx +++ b/oox/source/drawingml/chart/seriesconverter.cxx @@ -293,7 +293,7 @@ void ErrorBarConverter::convertFromModel( const Reference< XDataSeries >& rxData aBarProp.setProperty( PROP_ErrorBarStyle, cssc::ErrorBarStyle::STANDARD_ERROR ); break; default: - OSL_ENSURE( false, "ErrorBarConverter::convertFromModel - unknown error bar type" ); + OSL_FAIL( "ErrorBarConverter::convertFromModel - unknown error bar type" ); xErrorBar.clear(); } @@ -307,13 +307,13 @@ void ErrorBarConverter::convertFromModel( const Reference< XDataSeries >& rxData { case XML_x: aSeriesProp.setProperty( PROP_ErrorBarX, xErrorBar ); break; case XML_y: aSeriesProp.setProperty( PROP_ErrorBarY, xErrorBar ); break; - default: OSL_ENSURE( false, "ErrorBarConverter::convertFromModel - invalid error bar direction" ); + default: OSL_FAIL( "ErrorBarConverter::convertFromModel - invalid error bar direction" ); } } } catch( Exception& ) { - OSL_ENSURE( false, "ErrorBarConverter::convertFromModel - error while creating error bars" ); + OSL_FAIL( "ErrorBarConverter::convertFromModel - error while creating error bars" ); } } @@ -385,7 +385,7 @@ void TrendlineConverter::convertFromModel( const Reference< XDataSeries >& rxDat case XML_movingAvg: /* #i66819# moving average trendlines not supported */ break; case XML_poly: /* #i20819# polynomial trendlines not supported */ break; case XML_power: aServiceName = CREATE_OUSTRING( "com.sun.star.chart2.PotentialRegressionCurve" ); break; - default: OSL_ENSURE( false, "TrendlineConverter::convertFromModel - unknown trendline type" ); + default: OSL_FAIL( "TrendlineConverter::convertFromModel - unknown trendline type" ); } if( aServiceName.getLength() > 0 ) { @@ -416,7 +416,7 @@ void TrendlineConverter::convertFromModel( const Reference< XDataSeries >& rxDat } catch( Exception& ) { - OSL_ENSURE( false, "TrendlineConverter::convertFromModel - error while creating trendline" ); + OSL_FAIL( "TrendlineConverter::convertFromModel - error while creating trendline" ); } } |