diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-03-12 11:28:41 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-03-13 16:44:11 +0100 |
commit | fd3ae880bc267446dc27adf678801ae99a885fe3 (patch) | |
tree | ec4367afb2fdf43ec6332d0aa4cf1dcec0d30a9b /chart2/source/model/template | |
parent | adab3341788f4e51e075c469f925959d865b1769 (diff) |
Move OSL_ENSURE(false,...) to OSL_FAIL(...)
Diffstat (limited to 'chart2/source/model/template')
6 files changed, 6 insertions, 6 deletions
diff --git a/chart2/source/model/template/BubbleChartType.cxx b/chart2/source/model/template/BubbleChartType.cxx index e863bb4d0a53..a81e0508810d 100644 --- a/chart2/source/model/template/BubbleChartType.cxx +++ b/chart2/source/model/template/BubbleChartType.cxx @@ -125,7 +125,7 @@ Reference< chart2::XCoordinateSystem > SAL_CALL Reference< chart2::XAxis > xAxis( xResult->getAxisByDimension( i, MAIN_AXIS_INDEX ) ); if( !xAxis.is() ) { - OSL_ENSURE(false,"a created coordinate system should have an axis for each dimension"); + OSL_FAIL("a created coordinate system should have an axis for each dimension"); continue; } diff --git a/chart2/source/model/template/ChartType.cxx b/chart2/source/model/template/ChartType.cxx index 547bf3c103f2..c014113cc9f5 100644 --- a/chart2/source/model/template/ChartType.cxx +++ b/chart2/source/model/template/ChartType.cxx @@ -98,7 +98,7 @@ Reference< chart2::XCoordinateSystem > SAL_CALL Reference< chart2::XAxis > xAxis( xResult->getAxisByDimension( i, MAIN_AXIS_INDEX ) ); if( !xAxis.is() ) { - OSL_ENSURE(false,"a created coordinate system should have an axis for each dimension"); + OSL_FAIL("a created coordinate system should have an axis for each dimension"); continue; } diff --git a/chart2/source/model/template/ChartTypeManager.cxx b/chart2/source/model/template/ChartTypeManager.cxx index 00ebab147245..ba1fd1cbb13c 100644 --- a/chart2/source/model/template/ChartTypeManager.cxx +++ b/chart2/source/model/template/ChartTypeManager.cxx @@ -563,7 +563,7 @@ uno::Reference< uno::XInterface > SAL_CALL ChartTypeManager::createInstanceWithA throw (uno::Exception, uno::RuntimeException) { - OSL_ENSURE( false, "createInstanceWithArguments: No arguments supported" ); + OSL_FAIL( "createInstanceWithArguments: No arguments supported" ); return createInstance( ServiceSpecifier ); } diff --git a/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx b/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx index 716fe9dce6c5..2b99f706a696 100644 --- a/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx +++ b/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx @@ -423,7 +423,7 @@ Reference< XDataInterpreter > SAL_CALL ColumnLineChartTypeTemplate::getDataInter else { //todo... - OSL_ENSURE( false, "number of lines may not be valid anymore in the datainterpreter" ); + OSL_FAIL( "number of lines may not be valid anymore in the datainterpreter" ); } diff --git a/chart2/source/model/template/PieChartType.cxx b/chart2/source/model/template/PieChartType.cxx index 81760c2d3f39..da9ad227b3f8 100644 --- a/chart2/source/model/template/PieChartType.cxx +++ b/chart2/source/model/template/PieChartType.cxx @@ -146,7 +146,7 @@ Reference< chart2::XCoordinateSystem > SAL_CALL Reference< chart2::XAxis > xAxis( xResult->getAxisByDimension( i, MAIN_AXIS_INDEX ) ); if( !xAxis.is() ) { - OSL_ENSURE(false,"a created coordinate system should have an axis for each dimension"); + OSL_FAIL("a created coordinate system should have an axis for each dimension"); continue; } diff --git a/chart2/source/model/template/ScatterChartType.cxx b/chart2/source/model/template/ScatterChartType.cxx index 3d7b0fff5f28..260a76cada8b 100644 --- a/chart2/source/model/template/ScatterChartType.cxx +++ b/chart2/source/model/template/ScatterChartType.cxx @@ -169,7 +169,7 @@ Reference< chart2::XCoordinateSystem > SAL_CALL Reference< chart2::XAxis > xAxis( xResult->getAxisByDimension( i, MAIN_AXIS_INDEX ) ); if( !xAxis.is() ) { - OSL_ENSURE(false,"a created coordinate system should have an axis for each dimension"); + OSL_FAIL("a created coordinate system should have an axis for each dimension"); continue; } |