Error: exception specification of overriding function is more lax than base

Change-Id: Iffcc2084e005b27653964ddc6e965744be370a16
This commit is contained in:
Tor Lillqvist
2014-03-26 07:46:30 +02:00
parent 86090ef2fb
commit 975bbf29df
4 changed files with 10 additions and 6 deletions

View File

@@ -179,6 +179,7 @@ uno::Reference< XDiagram > SAL_CALL ChartTypeTemplate::createDiagramByDataSource
}
sal_Bool SAL_CALL ChartTypeTemplate::supportsCategories()
throw (::css::uno::RuntimeException, ::std::exception)
{
return sal_True;
}

View File

@@ -92,7 +92,8 @@ protected:
const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aArguments )
throw (::com::sun::star::uno::RuntimeException, std::exception);
/// denotes if the chart needs categories at the first scale
virtual sal_Bool SAL_CALL supportsCategories();
virtual sal_Bool SAL_CALL supportsCategories()
throw (::css::uno::RuntimeException, ::std::exception);
virtual void SAL_CALL changeDiagram(
const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XDiagram >& xDiagram )

View File

@@ -49,8 +49,8 @@ uno::Reference<chart2::XChartType> GL3DBarChartTypeTemplate::getChartTypeForInde
}
uno::Reference<chart2::XChartType>
GL3DBarChartTypeTemplate::getChartTypeForNewSeries(
const uno::Sequence<uno::Reference<chart2::XChartType> >& xOldChartTypes )
GL3DBarChartTypeTemplate::getChartTypeForNewSeries( const uno::Sequence<uno::Reference<chart2::XChartType> >& xOldChartTypes )
throw (::css::uno::RuntimeException, ::std::exception)
{
uno::Reference<chart2::XChartType> xResult;
@@ -77,6 +77,7 @@ GL3DBarChartTypeTemplate::getChartTypeForNewSeries(
}
sal_Bool GL3DBarChartTypeTemplate::supportsCategories()
throw (::css::uno::RuntimeException, ::std::exception)
{
return false;
}

View File

@@ -34,10 +34,11 @@ public:
// XChartTypeTemplate
virtual css::uno::Reference<css::chart2::XChartType> SAL_CALL
getChartTypeForNewSeries(
const css::uno::Sequence<css::uno::Reference<css::chart2::XChartType> >& xOldChartTypes );
getChartTypeForNewSeries( const css::uno::Sequence<css::uno::Reference<css::chart2::XChartType> >& xOldChartTypes )
throw (::css::uno::RuntimeException, ::std::exception);
virtual sal_Bool SAL_CALL supportsCategories();
virtual sal_Bool SAL_CALL supportsCategories()
throw (::css::uno::RuntimeException, ::std::exception);
};
}