From abe5aaa7269ff0c2105346ac44d05342d5be3be7 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 28 May 2014 13:08:21 +0100 Subject: coverity#706505 Uncaught exception Change-Id: Ia00361fb1d86223a7ed65f0be295b291183e3ad6 --- include/editeng/unonrule.hxx | 3 ++- include/editeng/unotext.hxx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'include/editeng') diff --git a/include/editeng/unonrule.hxx b/include/editeng/unonrule.hxx index 88d57e7ff60c..f600b6ab5753 100644 --- a/include/editeng/unonrule.hxx +++ b/include/editeng/unonrule.hxx @@ -72,7 +72,8 @@ public: virtual com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw(com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; // internal - com::sun::star::uno::Sequence getNumberingRuleByIndex( sal_Int32 nIndex) const throw(); + com::sun::star::uno::Sequence getNumberingRuleByIndex( sal_Int32 nIndex) const + throw (css::uno::RuntimeException); void setNumberingRuleByIndex( const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >& rProperties, sal_Int32 nIndex) throw( com::sun::star::uno::RuntimeException, com::sun::star::lang::IllegalArgumentException ); static sal_Int16 Compare( const com::sun::star::uno::Any& rAny1, const com::sun::star::uno::Any& rAny2 ); diff --git a/include/editeng/unotext.hxx b/include/editeng/unotext.hxx index 9000c9c9c2b7..03b2d0e1e545 100644 --- a/include/editeng/unotext.hxx +++ b/include/editeng/unotext.hxx @@ -270,7 +270,8 @@ protected: virtual void _setPropertyToDefault( SvxTextForwarder* pForwarder, const SfxItemPropertySimpleEntry* pMap, sal_Int32 nPara ) throw( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException ); void SetEditSource( SvxEditSource* _pEditSource ) throw(); - virtual void getPropertyValue( const SfxItemPropertySimpleEntry* pMap, com::sun::star::uno::Any& rAny, const SfxItemSet& rSet ) throw(::com::sun::star::beans::UnknownPropertyException ); + virtual void getPropertyValue( const SfxItemPropertySimpleEntry* pMap, com::sun::star::uno::Any& rAny, const SfxItemSet& rSet ) + throw(css::beans::UnknownPropertyException, css::uno::RuntimeException); virtual void setPropertyValue( const SfxItemPropertySimpleEntry* pMap, const com::sun::star::uno::Any& rValue, const ESelection& rSelection, const SfxItemSet& rOldSet, SfxItemSet& rNewSet ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::IllegalArgumentException ); SvxUnoTextRangeBase( const SvxItemPropertySet* _pSet ) throw(); -- cgit