summaryrefslogtreecommitdiff
path: root/chart2/source
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source')
-rw-r--r--chart2/source/controller/accessibility/AccessibleBase.cxx2
-rw-r--r--chart2/source/controller/accessibility/AccessibleTextHelper.cxx16
-rwxr-xr-xchart2/source/controller/chartapiwrapper/AreaWrapper.cxx6
-rw-r--r--chart2/source/controller/chartapiwrapper/AxisWrapper.cxx4
-rw-r--r--chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx4
-rwxr-xr-xchart2/source/controller/chartapiwrapper/MinMaxLineWrapper.cxx14
-rwxr-xr-xchart2/source/controller/chartapiwrapper/TitleWrapper.cxx2
-rwxr-xr-xchart2/source/controller/chartapiwrapper/UpDownBarWrapper.cxx14
-rwxr-xr-xchart2/source/controller/chartapiwrapper/WrappedScaleProperty.cxx6
-rw-r--r--chart2/source/controller/dialogs/ChartTypeDialogController.cxx2
-rw-r--r--chart2/source/controller/dialogs/DataBrowserModel.cxx2
-rw-r--r--chart2/source/controller/dialogs/DialogModel.cxx2
-rw-r--r--chart2/source/controller/dialogs/dlg_CreationWizard_UNO.cxx10
-rw-r--r--chart2/source/controller/dialogs/res_ErrorBar.cxx2
-rw-r--r--chart2/source/controller/dialogs/tp_3D_SceneAppearance.cxx2
-rw-r--r--chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx8
-rw-r--r--chart2/source/controller/dialogs/tp_RangeChooser.cxx2
-rw-r--r--chart2/source/controller/dialogs/tp_Scale.cxx2
-rw-r--r--chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx2
-rw-r--r--chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx4
-rw-r--r--chart2/source/controller/itemsetwrapper/ItemConverter.cxx10
-rw-r--r--chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx2
-rw-r--r--chart2/source/controller/main/ControllerCommandDispatch.cxx2
-rw-r--r--chart2/source/inc/macros.hxx2
-rw-r--r--chart2/source/model/filter/XMLFilter.cxx10
-rwxr-xr-xchart2/source/model/main/Axis.cxx2
-rw-r--r--chart2/source/model/main/ChartModel.cxx2
-rw-r--r--chart2/source/model/main/ChartModel_Persistence.cxx4
-rwxr-xr-xchart2/source/model/main/Diagram.cxx2
-rwxr-xr-xchart2/source/model/template/BubbleChartType.cxx2
-rwxr-xr-xchart2/source/model/template/ChartType.cxx2
-rw-r--r--chart2/source/model/template/ChartTypeManager.cxx2
-rwxr-xr-xchart2/source/model/template/ColumnLineChartTypeTemplate.cxx2
-rwxr-xr-xchart2/source/model/template/PieChartType.cxx2
-rwxr-xr-xchart2/source/model/template/ScatterChartType.cxx2
-rwxr-xr-xchart2/source/tools/ChartTypeHelper.cxx4
-rwxr-xr-xchart2/source/tools/CommonConverters.cxx2
-rw-r--r--chart2/source/tools/OPropertySet.cxx6
-rwxr-xr-xchart2/source/tools/RegressionCurveHelper.cxx4
-rw-r--r--chart2/source/tools/TitleHelper.cxx4
-rw-r--r--chart2/source/tools/UncachedDataSequence.cxx4
-rwxr-xr-xchart2/source/tools/WrappedPropertySet.cxx14
-rwxr-xr-xchart2/source/view/charttypes/VSeriesPlotter.cxx4
-rw-r--r--chart2/source/view/main/ChartView.cxx10
-rw-r--r--chart2/source/view/main/Clipping.cxx2
-rw-r--r--chart2/source/view/main/VLegendSymbolFactory.cxx2
46 files changed, 105 insertions, 105 deletions
diff --git a/chart2/source/controller/accessibility/AccessibleBase.cxx b/chart2/source/controller/accessibility/AccessibleBase.cxx
index ab3ebe750ff7..da0ffe71eca7 100644
--- a/chart2/source/controller/accessibility/AccessibleBase.cxx
+++ b/chart2/source/controller/accessibility/AccessibleBase.cxx
@@ -395,7 +395,7 @@ awt::Point AccessibleBase::GetUpperLeftOnScreen() const
aResult = pParent->GetUpperLeftOnScreen();
}
else
- OSL_ENSURE( false, "Default position used is probably incorrect." );
+ OSL_FAIL( "Default position used is probably incorrect." );
}
return aResult;
diff --git a/chart2/source/controller/accessibility/AccessibleTextHelper.cxx b/chart2/source/controller/accessibility/AccessibleTextHelper.cxx
index 9fd7695b301a..818a7b90256c 100644
--- a/chart2/source/controller/accessibility/AccessibleTextHelper.cxx
+++ b/chart2/source/controller/accessibility/AccessibleTextHelper.cxx
@@ -139,49 +139,49 @@ Reference< XAccessible > SAL_CALL AccessibleTextHelper::getAccessibleChild( ::sa
Reference< XAccessible > SAL_CALL AccessibleTextHelper::getAccessibleParent()
throw (uno::RuntimeException)
{
- OSL_ENSURE( false, "Not implemented in this helper" );
+ OSL_FAIL( "Not implemented in this helper" );
return Reference< XAccessible >();
}
::sal_Int32 SAL_CALL AccessibleTextHelper::getAccessibleIndexInParent()
throw (uno::RuntimeException)
{
- OSL_ENSURE( false, "Not implemented in this helper" );
+ OSL_FAIL( "Not implemented in this helper" );
return -1;
}
::sal_Int16 SAL_CALL AccessibleTextHelper::getAccessibleRole()
throw (uno::RuntimeException)
{
- OSL_ENSURE( false, "Not implemented in this helper" );
+ OSL_FAIL( "Not implemented in this helper" );
return AccessibleRole::UNKNOWN;
}
OUString SAL_CALL AccessibleTextHelper::getAccessibleDescription()
throw (uno::RuntimeException)
{
- OSL_ENSURE( false, "Not implemented in this helper" );
+ OSL_FAIL( "Not implemented in this helper" );
return OUString();
}
OUString SAL_CALL AccessibleTextHelper::getAccessibleName()
throw (uno::RuntimeException)
{
- OSL_ENSURE( false, "Not implemented in this helper" );
+ OSL_FAIL( "Not implemented in this helper" );
return OUString();
}
Reference< XAccessibleRelationSet > SAL_CALL AccessibleTextHelper::getAccessibleRelationSet()
throw (uno::RuntimeException)
{
- OSL_ENSURE( false, "Not implemented in this helper" );
+ OSL_FAIL( "Not implemented in this helper" );
return Reference< XAccessibleRelationSet >();
}
Reference< XAccessibleStateSet > SAL_CALL AccessibleTextHelper::getAccessibleStateSet()
throw (uno::RuntimeException)
{
- OSL_ENSURE( false, "Not implemented in this helper" );
+ OSL_FAIL( "Not implemented in this helper" );
return Reference< XAccessibleStateSet >();
}
@@ -189,7 +189,7 @@ lang::Locale SAL_CALL AccessibleTextHelper::getLocale()
throw (IllegalAccessibleComponentStateException,
uno::RuntimeException)
{
- OSL_ENSURE( false, "Not implemented in this helper" );
+ OSL_FAIL( "Not implemented in this helper" );
return lang::Locale();
}
diff --git a/chart2/source/controller/chartapiwrapper/AreaWrapper.cxx b/chart2/source/controller/chartapiwrapper/AreaWrapper.cxx
index 69bb32633dcf..95b206c09774 100755
--- a/chart2/source/controller/chartapiwrapper/AreaWrapper.cxx
+++ b/chart2/source/controller/chartapiwrapper/AreaWrapper.cxx
@@ -115,7 +115,7 @@ awt::Point SAL_CALL AreaWrapper::getPosition()
void SAL_CALL AreaWrapper::setPosition( const awt::Point& /*aPosition*/ )
throw (uno::RuntimeException)
{
- OSL_ENSURE( false, "trying to set position of chart area" );
+ OSL_FAIL( "trying to set position of chart area" );
}
awt::Size SAL_CALL AreaWrapper::getSize()
@@ -128,7 +128,7 @@ void SAL_CALL AreaWrapper::setSize( const awt::Size& /*aSize*/ )
throw (beans::PropertyVetoException,
uno::RuntimeException)
{
- OSL_ENSURE( false, "trying to set size of chart area" );
+ OSL_FAIL( "trying to set size of chart area" );
}
// ____ XShapeDescriptor (base of XShape) ____
@@ -171,7 +171,7 @@ Reference< beans::XPropertySet > AreaWrapper::getInnerPropertySet()
Reference< chart2::XChartDocument > xChartDoc( m_spChart2ModelContact->getChart2Document() );
if( xChartDoc.is() )
return xChartDoc->getPageBackground();
- OSL_ENSURE(false,"AreaWrapper::getInnerPropertySet() is NULL");
+ OSL_FAIL("AreaWrapper::getInnerPropertySet() is NULL");
return 0;
}
diff --git a/chart2/source/controller/chartapiwrapper/AxisWrapper.cxx b/chart2/source/controller/chartapiwrapper/AxisWrapper.cxx
index 5903df8cf183..f7d13280d263 100644
--- a/chart2/source/controller/chartapiwrapper/AxisWrapper.cxx
+++ b/chart2/source/controller/chartapiwrapper/AxisWrapper.cxx
@@ -491,7 +491,7 @@ awt::Point SAL_CALL AxisWrapper::getPosition()
void SAL_CALL AxisWrapper::setPosition( const awt::Point& /*aPosition*/ )
throw (uno::RuntimeException)
{
- OSL_ENSURE( false, "trying to set position of Axis" );
+ OSL_FAIL( "trying to set position of Axis" );
}
awt::Size SAL_CALL AxisWrapper::getSize()
@@ -505,7 +505,7 @@ void SAL_CALL AxisWrapper::setSize( const awt::Size& /*aSize*/ )
throw (beans::PropertyVetoException,
uno::RuntimeException)
{
- OSL_ENSURE( false, "trying to set size of Axis" );
+ OSL_FAIL( "trying to set size of Axis" );
}
// ____ XShapeDescriptor (base of XShape) ____
diff --git a/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx b/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx
index 07ca51845cb0..070dca26372a 100644
--- a/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx
+++ b/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx
@@ -564,7 +564,7 @@ OUString lcl_getDiagramType( const OUString & rTemplateServiceName )
if( aName.indexOf( C2U("Line") ) != -1 || aName.indexOf( C2U("Symbol") ) != -1 )
return C2U( "com.sun.star.chart.LineDiagram" );
- OSL_ENSURE( false, "unknown template" );
+ OSL_FAIL( "unknown template" );
}
return OUString();
@@ -1355,7 +1355,7 @@ WrappedStackingProperty::WrappedStackingProperty( StackMode eStackMode, ::boost:
m_aOuterName = C2U( "Deep" );
break;
default:
- OSL_ENSURE( false, "unexpected stack mode" );
+ OSL_FAIL( "unexpected stack mode" );
break;
}
}
diff --git a/chart2/source/controller/chartapiwrapper/MinMaxLineWrapper.cxx b/chart2/source/controller/chartapiwrapper/MinMaxLineWrapper.cxx
index 6190d1ced60c..ad6584b796f6 100755
--- a/chart2/source/controller/chartapiwrapper/MinMaxLineWrapper.cxx
+++ b/chart2/source/controller/chartapiwrapper/MinMaxLineWrapper.cxx
@@ -266,22 +266,22 @@ uno::Any SAL_CALL MinMaxLineWrapper::getPropertyValue( const ::rtl::OUString& rP
void SAL_CALL MinMaxLineWrapper::addPropertyChangeListener( const ::rtl::OUString& /*aPropertyName*/, const uno::Reference< beans::XPropertyChangeListener >& /*xListener*/ )
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
{
- OSL_ENSURE(false,"not implemented");
+ OSL_FAIL("not implemented");
}
void SAL_CALL MinMaxLineWrapper::removePropertyChangeListener( const ::rtl::OUString& /*aPropertyName*/, const uno::Reference< beans::XPropertyChangeListener >& /*aListener*/ )
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
{
- OSL_ENSURE(false,"not implemented");
+ OSL_FAIL("not implemented");
}
void SAL_CALL MinMaxLineWrapper::addVetoableChangeListener( const ::rtl::OUString& /*PropertyName*/, const uno::Reference< beans::XVetoableChangeListener >& /*aListener*/ )
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
{
- OSL_ENSURE(false,"not implemented");
+ OSL_FAIL("not implemented");
}
void SAL_CALL MinMaxLineWrapper::removeVetoableChangeListener( const ::rtl::OUString& /*PropertyName*/, const uno::Reference< beans::XVetoableChangeListener >& /*aListener*/ )
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
{
- OSL_ENSURE(false,"not implemented");
+ OSL_FAIL("not implemented");
}
//XMultiPropertySet
@@ -324,20 +324,20 @@ void SAL_CALL MinMaxLineWrapper::addPropertiesChangeListener(
const uno::Reference< beans::XPropertiesChangeListener >& /* xListener */ )
throw (uno::RuntimeException)
{
- OSL_ENSURE(false,"not implemented");
+ OSL_FAIL("not implemented");
}
void SAL_CALL MinMaxLineWrapper::removePropertiesChangeListener(
const uno::Reference< beans::XPropertiesChangeListener >& /* xListener */ )
throw (uno::RuntimeException)
{
- OSL_ENSURE(false,"not implemented");
+ OSL_FAIL("not implemented");
}
void SAL_CALL MinMaxLineWrapper::firePropertiesChangeEvent(
const uno::Sequence< ::rtl::OUString >& /* aPropertyNames */,
const uno::Reference< beans::XPropertiesChangeListener >& /* xListener */ )
throw (uno::RuntimeException)
{
- OSL_ENSURE(false,"not implemented");
+ OSL_FAIL("not implemented");
}
//XPropertyState
diff --git a/chart2/source/controller/chartapiwrapper/TitleWrapper.cxx b/chart2/source/controller/chartapiwrapper/TitleWrapper.cxx
index aa111eb46063..01af102984fe 100755
--- a/chart2/source/controller/chartapiwrapper/TitleWrapper.cxx
+++ b/chart2/source/controller/chartapiwrapper/TitleWrapper.cxx
@@ -266,7 +266,7 @@ void SAL_CALL TitleWrapper::setSize( const awt::Size& /*aSize*/ )
throw (beans::PropertyVetoException,
uno::RuntimeException)
{
- OSL_ENSURE( false, "trying to set size of title" );
+ OSL_FAIL( "trying to set size of title" );
}
// ____ XShapeDescriptor (base of XShape) ____
diff --git a/chart2/source/controller/chartapiwrapper/UpDownBarWrapper.cxx b/chart2/source/controller/chartapiwrapper/UpDownBarWrapper.cxx
index b789a34d5f94..a972e61a6119 100755
--- a/chart2/source/controller/chartapiwrapper/UpDownBarWrapper.cxx
+++ b/chart2/source/controller/chartapiwrapper/UpDownBarWrapper.cxx
@@ -237,22 +237,22 @@ uno::Any SAL_CALL UpDownBarWrapper::getPropertyValue( const ::rtl::OUString& rPr
void SAL_CALL UpDownBarWrapper::addPropertyChangeListener( const ::rtl::OUString& /*aPropertyName*/, const uno::Reference< beans::XPropertyChangeListener >& /*xListener*/ )
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
{
- OSL_ENSURE(false,"not implemented");
+ OSL_FAIL("not implemented");
}
void SAL_CALL UpDownBarWrapper::removePropertyChangeListener( const ::rtl::OUString& /*aPropertyName*/, const uno::Reference< beans::XPropertyChangeListener >& /*aListener*/ )
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
{
- OSL_ENSURE(false,"not implemented");
+ OSL_FAIL("not implemented");
}
void SAL_CALL UpDownBarWrapper::addVetoableChangeListener( const ::rtl::OUString& /*PropertyName*/, const uno::Reference< beans::XVetoableChangeListener >& /*aListener*/ )
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
{
- OSL_ENSURE(false,"not implemented");
+ OSL_FAIL("not implemented");
}
void SAL_CALL UpDownBarWrapper::removeVetoableChangeListener( const ::rtl::OUString& /*PropertyName*/, const uno::Reference< beans::XVetoableChangeListener >& /*aListener*/ )
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
{
- OSL_ENSURE(false,"not implemented");
+ OSL_FAIL("not implemented");
}
//XMultiPropertySet
@@ -293,17 +293,17 @@ uno::Sequence< uno::Any > SAL_CALL UpDownBarWrapper::getPropertyValues( const un
void SAL_CALL UpDownBarWrapper::addPropertiesChangeListener( const uno::Sequence< ::rtl::OUString >& /* aPropertyNames */, const uno::Reference< beans::XPropertiesChangeListener >& /* xListener */ )
throw (uno::RuntimeException)
{
- OSL_ENSURE(false,"not implemented");
+ OSL_FAIL("not implemented");
}
void SAL_CALL UpDownBarWrapper::removePropertiesChangeListener( const uno::Reference< beans::XPropertiesChangeListener >& /* xListener */ )
throw (uno::RuntimeException)
{
- OSL_ENSURE(false,"not implemented");
+ OSL_FAIL("not implemented");
}
void SAL_CALL UpDownBarWrapper::firePropertiesChangeEvent( const uno::Sequence< ::rtl::OUString >& /* aPropertyNames */, const uno::Reference< beans::XPropertiesChangeListener >& /* xListener */ )
throw (uno::RuntimeException)
{
- OSL_ENSURE(false,"not implemented");
+ OSL_FAIL("not implemented");
}
//XPropertyState
diff --git a/chart2/source/controller/chartapiwrapper/WrappedScaleProperty.cxx b/chart2/source/controller/chartapiwrapper/WrappedScaleProperty.cxx
index 3fb83c749c1b..0fa172ae2f18 100755
--- a/chart2/source/controller/chartapiwrapper/WrappedScaleProperty.cxx
+++ b/chart2/source/controller/chartapiwrapper/WrappedScaleProperty.cxx
@@ -108,7 +108,7 @@ WrappedScaleProperty::WrappedScaleProperty( tScaleProperty eScaleProperty
m_aOuterName = C2U("ReverseDirection");
break;
default:
- OSL_ENSURE(false,"unknown scale property");
+ OSL_FAIL("unknown scale property");
break;
}
}
@@ -349,7 +349,7 @@ void WrappedScaleProperty::setPropertyValue( tScaleProperty eScaleProperty, cons
}
default:
{
- OSL_ENSURE(false,"unknown scale property");
+ OSL_FAIL("unknown scale property");
break;
}
}
@@ -589,7 +589,7 @@ Any WrappedScaleProperty::getPropertyValue( tScaleProperty eScaleProperty, const
}
default:
{
- OSL_ENSURE(false,"unknown scale property");
+ OSL_FAIL("unknown scale property");
break;
}
}
diff --git a/chart2/source/controller/dialogs/ChartTypeDialogController.cxx b/chart2/source/controller/dialogs/ChartTypeDialogController.cxx
index 1ecca13d84f8..148175596967 100644
--- a/chart2/source/controller/dialogs/ChartTypeDialogController.cxx
+++ b/chart2/source/controller/dialogs/ChartTypeDialogController.cxx
@@ -269,7 +269,7 @@ rtl::OUString ChartTypeDialogController::getServiceNameForParameter( const Chart
return (*aIter).first;
}
- OSL_ENSURE( false, "ChartType not implemented yet - use fallback to similar type" );
+ OSL_FAIL( "ChartType not implemented yet - use fallback to similar type" );
for( sal_Int32 nMatchPrecision=1; nMatchPrecision<8; nMatchPrecision++ )
{
for( aIter = rMap.begin(); aIter != aEnd; ++aIter )
diff --git a/chart2/source/controller/dialogs/DataBrowserModel.cxx b/chart2/source/controller/dialogs/DataBrowserModel.cxx
index f5d9628a1b31..2ee7f3f580c7 100644
--- a/chart2/source/controller/dialogs/DataBrowserModel.cxx
+++ b/chart2/source/controller/dialogs/DataBrowserModel.cxx
@@ -442,7 +442,7 @@ void DataBrowserModel::insertComplexCategoryLevel( sal_Int32 nAfterColumnIndex )
if(nAfterColumnIndex<0)
{
- OSL_ENSURE( false, "wrong index for category level insertion" );
+ OSL_FAIL( "wrong index for category level insertion" );
return;
}
diff --git a/chart2/source/controller/dialogs/DialogModel.cxx b/chart2/source/controller/dialogs/DialogModel.cxx
index ac2d4fa07129..8dd2e0ff2602 100644
--- a/chart2/source/controller/dialogs/DialogModel.cxx
+++ b/chart2/source/controller/dialogs/DialogModel.cxx
@@ -688,7 +688,7 @@ bool DialogModel::setData(
if( ! xDataProvider.is() ||
! m_xTemplate.is() )
{
- OSL_ENSURE( false, "Model objects missing" );
+ OSL_FAIL( "Model objects missing" );
return false;
}
diff --git a/chart2/source/controller/dialogs/dlg_CreationWizard_UNO.cxx b/chart2/source/controller/dialogs/dlg_CreationWizard_UNO.cxx
index b7461c404363..ded21367da64 100644
--- a/chart2/source/controller/dialogs/dlg_CreationWizard_UNO.cxx
+++ b/chart2/source/controller/dialogs/dlg_CreationWizard_UNO.cxx
@@ -320,7 +320,7 @@ void SAL_CALL CreationWizardUnoDlg::disposing()
uno::Reference< beans::XPropertySetInfo > SAL_CALL CreationWizardUnoDlg::getPropertySetInfo()
throw (uno::RuntimeException)
{
- OSL_ENSURE(false,"not implemented");
+ OSL_FAIL("not implemented");
return 0;
}
@@ -404,25 +404,25 @@ void SAL_CALL CreationWizardUnoDlg::addPropertyChangeListener(
const ::rtl::OUString& /* aPropertyName */, const uno::Reference< beans::XPropertyChangeListener >& /* xListener */ )
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
{
- OSL_ENSURE(false,"not implemented");
+ OSL_FAIL("not implemented");
}
void SAL_CALL CreationWizardUnoDlg::removePropertyChangeListener(
const ::rtl::OUString& /* aPropertyName */, const uno::Reference< beans::XPropertyChangeListener >& /* aListener */ )
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
{
- OSL_ENSURE(false,"not implemented");
+ OSL_FAIL("not implemented");
}
void SAL_CALL CreationWizardUnoDlg::addVetoableChangeListener( const ::rtl::OUString& /* PropertyName */, const uno::Reference< beans::XVetoableChangeListener >& /* aListener */ )
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
{
- OSL_ENSURE(false,"not implemented");
+ OSL_FAIL("not implemented");
}
void SAL_CALL CreationWizardUnoDlg::removeVetoableChangeListener( const ::rtl::OUString& /* PropertyName */, const uno::Reference< beans::XVetoableChangeListener >& /* aListener */ )
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
{
- OSL_ENSURE(false,"not implemented");
+ OSL_FAIL("not implemented");
}
//.............................................................................
diff --git a/chart2/source/controller/dialogs/res_ErrorBar.cxx b/chart2/source/controller/dialogs/res_ErrorBar.cxx
index 9a645ab0cf4b..f4e76f28edd9 100644
--- a/chart2/source/controller/dialogs/res_ErrorBar.cxx
+++ b/chart2/source/controller/dialogs/res_ErrorBar.cxx
@@ -395,7 +395,7 @@ IMPL_LINK( ErrorBarResources, CategoryChosen, void *, )
}
else
{
- OSL_ENSURE( false, "Unknown category chosen" );
+ OSL_FAIL( "Unknown category chosen" );
m_bErrorKindUnique = false;
}
diff --git a/chart2/source/controller/dialogs/tp_3D_SceneAppearance.cxx b/chart2/source/controller/dialogs/tp_3D_SceneAppearance.cxx
index 6a5cacf52807..15006901c577 100644
--- a/chart2/source/controller/dialogs/tp_3D_SceneAppearance.cxx
+++ b/chart2/source/controller/dialogs/tp_3D_SceneAppearance.cxx
@@ -317,7 +317,7 @@ IMPL_LINK( ThreeD_SceneAppearance_TabPage, SelectSchemeHdl, void*, EMPTYARG )
ThreeDHelper::setScheme( xDiagram, ThreeDLookScheme_Simple );
else
{
- OSL_ENSURE( false, "Invalid Entry selected" );
+ OSL_FAIL( "Invalid Entry selected" );
}
}
diff --git a/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx b/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx
index bd818fc3a29c..e6548b58d112 100644
--- a/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx
+++ b/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx
@@ -204,7 +204,7 @@ namespace
catch( const uno::Exception & ex )
{
(void)(ex); // no warning in non-debug builds
- OSL_ENSURE( false, ::rtl::OUStringToOString(
+ OSL_FAIL( ::rtl::OUStringToOString(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Property Exception caught. Message: " )) +
ex.Message, RTL_TEXTENCODING_ASCII_US ).getStr());
}
@@ -236,7 +236,7 @@ namespace
catch( const uno::Exception & ex )
{
(void)(ex); // no warning in non-debug builds
- OSL_ENSURE( false, ::rtl::OUStringToOString(
+ OSL_FAIL( ::rtl::OUStringToOString(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Property Exception caught. Message: " )) +
ex.Message, RTL_TEXTENCODING_ASCII_US ).getStr());
}
@@ -255,7 +255,7 @@ namespace
catch( const uno::Exception & ex )
{
(void)(ex); // no warning in non-debug builds
- OSL_ENSURE( false, ::rtl::OUStringToOString(
+ OSL_FAIL( ::rtl::OUStringToOString(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Property Exception caught. Message: " )) +
ex.Message, RTL_TEXTENCODING_ASCII_US ).getStr());
}
@@ -275,7 +275,7 @@ namespace
catch( const uno::Exception & ex )
{
(void)(ex); // no warning in non-debug builds
- OSL_ENSURE( false, ::rtl::OUStringToOString(
+ OSL_FAIL( ::rtl::OUStringToOString(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Property Exception caught. Message: " )) +
ex.Message, RTL_TEXTENCODING_ASCII_US ).getStr());
}
diff --git a/chart2/source/controller/dialogs/tp_RangeChooser.cxx b/chart2/source/controller/dialogs/tp_RangeChooser.cxx
index 43ba8a16d307..9ae9ab4579fd 100644
--- a/chart2/source/controller/dialogs/tp_RangeChooser.cxx
+++ b/chart2/source/controller/dialogs/tp_RangeChooser.cxx
@@ -246,7 +246,7 @@ void RangeChooserTabPage::changeDialogModelAccordingToControls()
m_xCurrentChartTypeTemplate.set( m_pTemplateProvider->getCurrentTemplate());
if( !m_xCurrentChartTypeTemplate.is())
{
- OSL_ENSURE( false, "Need a template to change data source" );
+ OSL_FAIL( "Need a template to change data source" );
return;
}
}
diff --git a/chart2/source/controller/dialogs/tp_Scale.cxx b/chart2/source/controller/dialogs/tp_Scale.cxx
index df4a46a13ed6..0eb9ae7bf047 100644
--- a/chart2/source/controller/dialogs/tp_Scale.cxx
+++ b/chart2/source/controller/dialogs/tp_Scale.cxx
@@ -579,7 +579,7 @@ int ScaleTabPage::DeactivatePage(SfxItemSet* pItemSet)
nIndex = static_cast< sal_uInt32 >( static_cast< const SfxInt32Item* >(pPoolItem)->GetValue());
else
{
- OSL_ENSURE( false, "Using Standard Language" );
+ OSL_FAIL( "Using Standard Language" );
}
Control* pControl = NULL;
diff --git a/chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx b/chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx
index 59a24c238544..3304f36f9e42 100644
--- a/chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx
@@ -205,7 +205,7 @@ bool ErrorBarItemConverter::ApplySpecialItem(
case SCHATTR_STAT_PERCENT:
case SCHATTR_STAT_BIGERROR:
{
- OSL_ENSURE( false, "Deprectaed item" );
+ OSL_FAIL( "Deprectaed item" );
uno::Reference< beans::XPropertySet > xErrorBarProp( GetPropertySet());
double fValue =
diff --git a/chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx b/chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx
index b593f8d19f47..05b8af1c4ba6 100644
--- a/chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx
@@ -733,7 +733,7 @@ bool GraphicPropertyItemConverter::ApplySpecialItem(
}
else
{
- OSL_ENSURE( false, "Wrong type in Transparency Any" );
+ OSL_FAIL( "Wrong type in Transparency Any" );
}
}
}
@@ -778,7 +778,7 @@ bool GraphicPropertyItemConverter::ApplySpecialItem(
}
else
{
- OSL_ENSURE( false, "Wrong type in Transparency Any" );
+ OSL_FAIL( "Wrong type in Transparency Any" );
}
}
}
diff --git a/chart2/source/controller/itemsetwrapper/ItemConverter.cxx b/chart2/source/controller/itemsetwrapper/ItemConverter.cxx
index 57cf1143ecf9..a121a774615c 100644
--- a/chart2/source/controller/itemsetwrapper/ItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/ItemConverter.cxx
@@ -143,7 +143,7 @@ void ItemConverter::FillItemSet( SfxItemSet & rOutItemSet ) const
catch( beans::UnknownPropertyException &ex )
{
delete pItem;
- OSL_ENSURE( false,
+ OSL_FAIL(
::rtl::OUStringToOString(
ex.Message +
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
@@ -175,14 +175,14 @@ void ItemConverter::FillSpecialItem(
sal_uInt16 /*nWhichId*/, SfxItemSet & /*rOutItemSet*/ ) const
throw( uno::Exception )
{
- OSL_ENSURE( false, "ItemConverter: Unhandled special item found!" );
+ OSL_FAIL( "ItemConverter: Unhandled special item found!" );
}
bool ItemConverter::ApplySpecialItem(
sal_uInt16 /*nWhichId*/, const SfxItemSet & /*rItemSet*/ )
throw( uno::Exception )
{
- OSL_ENSURE( false, "ItemConverter: Unhandled special item found!" );
+ OSL_FAIL( "ItemConverter: Unhandled special item found!" );
return false;
}
@@ -214,7 +214,7 @@ bool ItemConverter::ApplyItemSet( const SfxItemSet & rItemSet )
}
catch( beans::UnknownPropertyException &ex )
{
- OSL_ENSURE( false,
+ OSL_FAIL(
::rtl::OUStringToOString(
ex.Message +
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
@@ -223,7 +223,7 @@ bool ItemConverter::ApplyItemSet( const SfxItemSet & rItemSet )
}
catch( uno::Exception &ex )
{
- OSL_ENSURE( false, ::rtl::OUStringToOString(
+ OSL_FAIL( ::rtl::OUStringToOString(
ex.Message, RTL_TEXTENCODING_ASCII_US ).getStr());
}
}
diff --git a/chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx b/chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx
index 6b35080a5cb3..60b5141c3a9c 100644
--- a/chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx
@@ -304,7 +304,7 @@ bool StatisticsItemConverter::ApplySpecialItem(
case SCHATTR_STAT_PERCENT:
case SCHATTR_STAT_BIGERROR:
{
- OSL_ENSURE( false, "Deprectaed item" );
+ OSL_FAIL( "Deprectaed item" );
uno::Reference< beans::XPropertySet > xErrorBarProp(
lcl_GetYErrorBar( GetPropertySet()));
bool bOldHasErrorBar = xErrorBarProp.is();
diff --git a/chart2/source/controller/main/ControllerCommandDispatch.cxx b/chart2/source/controller/main/ControllerCommandDispatch.cxx
index c2134bef3ff1..eaf4b77a8746 100644
--- a/chart2/source/controller/main/ControllerCommandDispatch.cxx
+++ b/chart2/source/controller/main/ControllerCommandDispatch.cxx
@@ -690,7 +690,7 @@ bool ControllerCommandDispatch::commandAvailable( const OUString & rCommand )
::std::map< OUString, bool >::const_iterator aIt( m_aCommandAvailability.find( rCommand ));
if( aIt != m_aCommandAvailability.end())
return aIt->second;
- OSL_ENSURE( false, "commandAvailable: command not in availability map" );
+ OSL_FAIL( "commandAvailable: command not in availability map" );
return false;
}
diff --git a/chart2/source/inc/macros.hxx b/chart2/source/inc/macros.hxx
index e1e7a8e22f46..ffa5290483c6 100644
--- a/chart2/source/inc/macros.hxx
+++ b/chart2/source/inc/macros.hxx
@@ -38,7 +38,7 @@
*/
#if OSL_DEBUG_LEVEL > 0
#define ASSERT_EXCEPTION(ex) \
- OSL_ENSURE( false, ::rtl::OUStringToOString( \
+ OSL_FAIL( ::rtl::OUStringToOString( \
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Exception caught. Type: " )) +\
::rtl::OUString::createFromAscii( typeid( ex ).name()) +\
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ", Message: " )) +\
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!");
}
}
diff --git a/chart2/source/model/main/Axis.cxx b/chart2/source/model/main/Axis.cxx
index 0720c0dc95b6..babef7fd466c 100755
--- a/chart2/source/model/main/Axis.cxx
+++ b/chart2/source/model/main/Axis.cxx
@@ -487,7 +487,7 @@ Sequence< Reference< beans::XPropertySet > > SAL_CALL Axis::getSubGridProperties
Sequence< Reference< beans::XPropertySet > > SAL_CALL Axis::getSubTickProperties()
throw (uno::RuntimeException)
{
- OSL_ENSURE( false, "Not implemented yet" );
+ OSL_FAIL( "Not implemented yet" );
return Sequence< Reference< beans::XPropertySet > >();
}
diff --git a/chart2/source/model/main/ChartModel.cxx b/chart2/source/model/main/ChartModel.cxx
index 015dde15f9e1..369d90e9711c 100644
--- a/chart2/source/model/main/ChartModel.cxx
+++ b/chart2/source/model/main/ChartModel.cxx
@@ -1049,7 +1049,7 @@ void SAL_CALL ChartModel::setVisualAreaSize( ::sal_Int64 nAspect, const awt::Siz
}
else
{
- OSL_ENSURE( false, "setVisualAreaSize: Aspect not implemented yet.");
+ OSL_FAIL( "setVisualAreaSize: Aspect not implemented yet.");
}
}
diff --git a/chart2/source/model/main/ChartModel_Persistence.cxx b/chart2/source/model/main/ChartModel_Persistence.cxx
index a7943bc76cd4..b1cbbd0d3db8 100644
--- a/chart2/source/model/main/ChartModel_Persistence.cxx
+++ b/chart2/source/model/main/ChartModel_Persistence.cxx
@@ -374,7 +374,7 @@ void ChartModel::impl_store(
}
else
{
- OSL_ENSURE( false, "No filter" );
+ OSL_FAIL( "No filter" );
}
setModified( sal_False );
@@ -605,7 +605,7 @@ void ChartModel::impl_load(
}
else
{
- OSL_ENSURE( false, "loadFromStorage cannot create filter" );
+ OSL_FAIL( "loadFromStorage cannot create filter" );
}
if( xStorage.is() )
diff --git a/chart2/source/model/main/Diagram.cxx b/chart2/source/model/main/Diagram.cxx
index 7c9e3c6294f4..e1df573402d6 100755
--- a/chart2/source/model/main/Diagram.cxx
+++ b/chart2/source/model/main/Diagram.cxx
@@ -504,7 +504,7 @@ void SAL_CALL Diagram::addCoordinateSystem(
if( m_aCoordSystems.size()>=1 )
{
- OSL_ENSURE( false, "more than one coordinatesystem is not supported yet by the fileformat" );
+ OSL_FAIL( "more than one coordinatesystem is not supported yet by the fileformat" );
return;
}
m_aCoordSystems.push_back( aCoordSys );
diff --git a/chart2/source/model/template/BubbleChartType.cxx b/chart2/source/model/template/BubbleChartType.cxx
index 8a957c496492..66ac05f414c1 100755
--- a/chart2/source/model/template/BubbleChartType.cxx
+++ b/chart2/source/model/template/BubbleChartType.cxx
@@ -155,7 +155,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 0249d8cc1282..99b3ca9fadaa 100755
--- 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 07a060c91e62..cf01b9efea4a 100755
--- 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 fac0b9c12787..fb68229d1fe4 100755
--- a/chart2/source/model/template/PieChartType.cxx
+++ b/chart2/source/model/template/PieChartType.cxx
@@ -177,7 +177,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 8080730a7b0e..f316e05e99d4 100755
--- a/chart2/source/model/template/ScatterChartType.cxx
+++ b/chart2/source/model/template/ScatterChartType.cxx
@@ -200,7 +200,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/tools/ChartTypeHelper.cxx b/chart2/source/tools/ChartTypeHelper.cxx
index c70da42322b1..1ba13e6093c0 100755
--- a/chart2/source/tools/ChartTypeHelper.cxx
+++ b/chart2/source/tools/ChartTypeHelper.cxx
@@ -360,7 +360,7 @@ uno::Sequence < sal_Int32 > ChartTypeHelper::getSupportedLabelPlacements( const
}
else
{
- OSL_ENSURE( false, "unknown charttype" );
+ OSL_FAIL( "unknown charttype" );
}
return aRet;
@@ -635,7 +635,7 @@ uno::Sequence < sal_Int32 > ChartTypeHelper::getSupportedMissingValueTreatments(
}
else
{
- OSL_ENSURE( false, "unknown charttype" );
+ OSL_FAIL( "unknown charttype" );
}
return aRet;
diff --git a/chart2/source/tools/CommonConverters.cxx b/chart2/source/tools/CommonConverters.cxx
index f6a1e360f95d..c95e78f9bdb7 100755
--- a/chart2/source/tools/CommonConverters.cxx
+++ b/chart2/source/tools/CommonConverters.cxx
@@ -166,7 +166,7 @@ void AddPointToPoly( drawing::PolyPolygonShape3D& rPoly, const drawing::Position
{
if(nPolygonIndex<0)
{
- OSL_ENSURE( false, "The polygon index needs to be > 0");
+ OSL_FAIL( "The polygon index needs to be > 0");
nPolygonIndex=0;
}
diff --git a/chart2/source/tools/OPropertySet.cxx b/chart2/source/tools/OPropertySet.cxx
index 94fe66a5388f..801fc608e864 100644
--- a/chart2/source/tools/OPropertySet.cxx
+++ b/chart2/source/tools/OPropertySet.cxx
@@ -365,14 +365,14 @@ void SAL_CALL OPropertySet::getFastPropertyValue
}
else
{
- OSL_ENSURE( false, "HandleCheck: Handle not found in Style" );
+ OSL_FAIL( "HandleCheck: Handle not found in Style" );
}
}
else
- OSL_ENSURE( false, "HandleCheck: Invalid XPropertySetInfo returned" );
+ OSL_FAIL( "HandleCheck: Invalid XPropertySetInfo returned" );
}
else
- OSL_ENSURE( false, "HandleCheck: XPropertySet not supported" );
+ OSL_FAIL( "HandleCheck: XPropertySet not supported" );
}
#endif
rValue = xStylePropSet->getFastPropertyValue( nHandle );
diff --git a/chart2/source/tools/RegressionCurveHelper.cxx b/chart2/source/tools/RegressionCurveHelper.cxx
index 3ebf3a1de564..38d124af11ca 100755
--- a/chart2/source/tools/RegressionCurveHelper.cxx
+++ b/chart2/source/tools/RegressionCurveHelper.cxx
@@ -76,7 +76,7 @@ OUString lcl_getServiceNameForType( ::chart::RegressionCurveHelper::tRegressionT
aServiceName = C2U( "com.sun.star.chart2.PotentialRegressionCurve" );
break;
default:
- OSL_ENSURE(false,"unknown regression curve type - use linear instead");
+ OSL_FAIL("unknown regression curve type - use linear instead");
aServiceName = C2U( "com.sun.star.chart2.LinearRegressionCurve" );
break;
}
@@ -372,7 +372,7 @@ void RegressionCurveHelper::addRegressionCurve(
if( eType == REGRESSION_TYPE_NONE )
{
- OSL_ENSURE(false,"don't create a regression curve of type none");
+ OSL_FAIL("don't create a regression curve of type none");
return;
}
diff --git a/chart2/source/tools/TitleHelper.cxx b/chart2/source/tools/TitleHelper.cxx
index 6cd9585d76af..78809c1ca45a 100644
--- a/chart2/source/tools/TitleHelper.cxx
+++ b/chart2/source/tools/TitleHelper.cxx
@@ -93,7 +93,7 @@ uno::Reference< XTitled > lcl_getTitleParentFromDiagram(
case TitleHelper::MAIN_TITLE:
default:
- OSL_ENSURE( false, "Unsupported Title-Type requested" );
+ OSL_FAIL( "Unsupported Title-Type requested" );
break;
}
@@ -125,7 +125,7 @@ uno::Reference< XTitled > lcl_getTitleParent( TitleHelper::eTitleType nTitleInde
xResult.set( lcl_getTitleParentFromDiagram( nTitleIndex, xDiagram ));
break;
default:
- OSL_ENSURE( false, "Unsupported Title-Type requested" );
+ OSL_FAIL( "Unsupported Title-Type requested" );
break;
}
diff --git a/chart2/source/tools/UncachedDataSequence.cxx b/chart2/source/tools/UncachedDataSequence.cxx
index f90feb01bd38..543cdad9b26e 100644
--- a/chart2/source/tools/UncachedDataSequence.cxx
+++ b/chart2/source/tools/UncachedDataSequence.cxx
@@ -266,7 +266,7 @@ void SAL_CALL UncachedDataSequence::replaceByIndex( ::sal_Int32 Index, const uno
::sal_Int32 SAL_CALL UncachedDataSequence::getCount()
throw (uno::RuntimeException)
{
- OSL_ENSURE( false, "Implement!" );
+ OSL_FAIL( "Implement!" );
return 0;
}
@@ -275,7 +275,7 @@ uno::Any SAL_CALL UncachedDataSequence::getByIndex( ::sal_Int32 )
lang::WrappedTargetException,
uno::RuntimeException)
{
- OSL_ENSURE( false, "Implement!" );
+ OSL_FAIL( "Implement!" );
return uno::Any();
}
diff --git a/chart2/source/tools/WrappedPropertySet.cxx b/chart2/source/tools/WrappedPropertySet.cxx
index 06f2b554bdb3..d594686f15b8 100755
--- a/chart2/source/tools/WrappedPropertySet.cxx
+++ b/chart2/source/tools/WrappedPropertySet.cxx
@@ -150,7 +150,7 @@ void SAL_CALL WrappedPropertySet::setPropertyValue( const OUString& rPropertyNam
}
catch( uno::Exception& ex )
{
- OSL_ENSURE(false,"invalid exception caught in WrappedPropertySet::setPropertyValue");
+ OSL_FAIL("invalid exception caught in WrappedPropertySet::setPropertyValue");
lang::WrappedTargetException aWrappedException;
aWrappedException.TargetException = uno::makeAny( ex );
throw aWrappedException;
@@ -191,7 +191,7 @@ Any SAL_CALL WrappedPropertySet::getPropertyValue( const OUString& rPropertyName
}
catch( uno::Exception& ex )
{
- OSL_ENSURE(false,"invalid exception caught in WrappedPropertySet::setPropertyValue");
+ OSL_FAIL("invalid exception caught in WrappedPropertySet::setPropertyValue");
lang::WrappedTargetException aWrappedException;
aWrappedException.TargetException = uno::makeAny( ex );
throw aWrappedException;
@@ -307,19 +307,19 @@ Sequence< Any > SAL_CALL WrappedPropertySet::getPropertyValues( const Sequence<
void SAL_CALL WrappedPropertySet::addPropertiesChangeListener( const Sequence< OUString >& /* rNameSeq */, const Reference< beans::XPropertiesChangeListener >& /* xListener */ )
throw (uno::RuntimeException)
{
- OSL_ENSURE(false,"not implemented yet");
+ OSL_FAIL("not implemented yet");
//todo
}
void SAL_CALL WrappedPropertySet::removePropertiesChangeListener( const Reference< beans::XPropertiesChangeListener >& /* xListener */ )
throw (uno::RuntimeException)
{
- OSL_ENSURE(false,"not implemented yet");
+ OSL_FAIL("not implemented yet");
//todo
}
void SAL_CALL WrappedPropertySet::firePropertiesChangeEvent( const Sequence< OUString >& /* rNameSeq */, const Reference< beans::XPropertiesChangeListener >& /* xListener */ )
throw (uno::RuntimeException)
{
- OSL_ENSURE(false,"not implemented yet");
+ OSL_FAIL("not implemented yet");
//todo
}
@@ -483,13 +483,13 @@ tWrappedPropertyMap& WrappedPropertySet::getWrappedPropertyMap()
if( nHandle == -1 )
{
- OSL_ENSURE( false, "missing property in property list" );
+ OSL_FAIL( "missing property in property list" );
delete pProperty;//we are owner or the created WrappedProperties
}
else if( p->find( nHandle ) != p->end() )
{
//duplicate Wrapped property
- OSL_ENSURE( false, "duplicate Wrapped property" );
+ OSL_FAIL( "duplicate Wrapped property" );
delete pProperty;//we are owner or the created WrappedProperties
}
else
diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx
index 7b34399f1c94..1b8783de2549 100755
--- a/chart2/source/view/charttypes/VSeriesPlotter.cxx
+++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx
@@ -244,7 +244,7 @@ void VSeriesPlotter::addSeries( VDataSeries* pSeries, sal_Int32 zSlot, sal_Int32
{
//move all existing series in the xSlot to next slot
//@todo
- OSL_ENSURE( false, "Not implemented yet");
+ OSL_FAIL( "Not implemented yet");
}
else if( ySlot == -1 || ySlot >= nYSlotCount)
{
@@ -257,7 +257,7 @@ void VSeriesPlotter::addSeries( VDataSeries* pSeries, sal_Int32 zSlot, sal_Int32
//insert at given y and x position
//@todo
- OSL_ENSURE( false, "Not implemented yet");
+ OSL_FAIL( "Not implemented yet");
}
}
}
diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx
index ad7f4dfb7739..e54a7ab59f66 100644
--- a/chart2/source/view/main/ChartView.cxx
+++ b/chart2/source/view/main/ChartView.cxx
@@ -2831,7 +2831,7 @@ void SAL_CALL ChartView::update() throw (uno::RuntimeException)
Reference< beans::XPropertySetInfo > SAL_CALL ChartView::getPropertySetInfo()
throw (uno::RuntimeException)
{
- OSL_ENSURE(false,"not implemented");
+ OSL_FAIL("not implemented");
return 0;
}
@@ -2907,25 +2907,25 @@ void SAL_CALL ChartView::addPropertyChangeListener(
const ::rtl::OUString& /* aPropertyName */, const Reference< beans::XPropertyChangeListener >& /* xListener */ )
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
{
- OSL_ENSURE(false,"not implemented");
+ OSL_FAIL("not implemented");
}
void SAL_CALL ChartView::removePropertyChangeListener(
const ::rtl::OUString& /* aPropertyName */, const Reference< beans::XPropertyChangeListener >& /* aListener */ )
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
{
- OSL_ENSURE(false,"not implemented");
+ OSL_FAIL("not implemented");
}
void SAL_CALL ChartView::addVetoableChangeListener( const ::rtl::OUString& /* PropertyName */, const Reference< beans::XVetoableChangeListener >& /* aListener */ )
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
{
- OSL_ENSURE(false,"not implemented");
+ OSL_FAIL("not implemented");
}
void SAL_CALL ChartView::removeVetoableChangeListener( const ::rtl::OUString& /* PropertyName */, const Reference< beans::XVetoableChangeListener >& /* aListener */ )
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
{
- OSL_ENSURE(false,"not implemented");
+ OSL_FAIL("not implemented");
}
// ____ XMultiServiceFactory ____
diff --git a/chart2/source/view/main/Clipping.cxx b/chart2/source/view/main/Clipping.cxx
index c44bea326173..1965eda06834 100644
--- a/chart2/source/view/main/Clipping.cxx
+++ b/chart2/source/view/main/Clipping.cxx
@@ -165,7 +165,7 @@ void lcl_addPointToPoly( drawing::PolyPolygonShape3D& rPoly
{
if(nPolygonIndex<0)
{
- OSL_ENSURE( false, "The polygon index needs to be > 0");
+ OSL_FAIL( "The polygon index needs to be > 0");
nPolygonIndex=0;
}
diff --git a/chart2/source/view/main/VLegendSymbolFactory.cxx b/chart2/source/view/main/VLegendSymbolFactory.cxx
index 373f482c438e..64d20e7415a8 100644
--- a/chart2/source/view/main/VLegendSymbolFactory.cxx
+++ b/chart2/source/view/main/VLegendSymbolFactory.cxx
@@ -175,7 +175,7 @@ Reference< drawing::XShape > VLegendSymbolFactory::createSymbol(
}
else if( aSymbol.Style == chart2::SymbolStyle_AUTO )
{
- DBG_ERROR("the given parameter is not allowed to contain an automatic symbol style");
+ OSL_TRACE("the given parameter is not allowed to contain an automatic symbol style");
}
}
}