summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-24 12:44:42 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-24 13:03:50 +0100
commit9329cd7fbef877e32d65f046e19004186c2625da (patch)
treebb93f567a5dab5136019bbf81e2528b730c21d15
parentcbb853731affe0c57095a7092bf046bf04eadfd9 (diff)
coverity#983969 Uncaught exception
Change-Id: I56c8145f45da3f3265ddcc22a011ec6111b0a8ca
-rw-r--r--include/comphelper/ChainablePropertySet.hxx6
-rw-r--r--sw/source/core/uibase/inc/unomod.hxx6
-rw-r--r--sw/source/core/uibase/uno/unomod.cxx4
3 files changed, 13 insertions, 3 deletions
diff --git a/include/comphelper/ChainablePropertySet.hxx b/include/comphelper/ChainablePropertySet.hxx
index 8c7c35fa8e5d..95f832d2fb22 100644
--- a/include/comphelper/ChainablePropertySet.hxx
+++ b/include/comphelper/ChainablePropertySet.hxx
@@ -64,7 +64,11 @@ namespace comphelper
::com::sun::star::uno::Reference < com::sun::star::beans::XPropertySetInfo > mxInfo;
virtual void _preSetValues ()
- throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException ) = 0;
+ throw (css::beans::UnknownPropertyException,
+ css::beans::PropertyVetoException,
+ css::lang::IllegalArgumentException,
+ css::lang::WrappedTargetException,
+ css::uno::RuntimeException) = 0;
virtual void _setSingleValue( const comphelper::PropertyInfo & rInfo, const ::com::sun::star::uno::Any &rValue )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException ) = 0;
virtual void _postSetValues ()
diff --git a/sw/source/core/uibase/inc/unomod.hxx b/sw/source/core/uibase/inc/unomod.hxx
index 41b59c487ffe..5e087bfd69f8 100644
--- a/sw/source/core/uibase/inc/unomod.hxx
+++ b/sw/source/core/uibase/inc/unomod.hxx
@@ -86,7 +86,11 @@ protected:
SwDoc *mpDoc;
virtual void _preSetValues ()
- throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException ) SAL_OVERRIDE;
+ throw (css::beans::UnknownPropertyException,
+ css::beans::PropertyVetoException,
+ css::lang::IllegalArgumentException,
+ css::lang::WrappedTargetException,
+ css::uno::RuntimeException) SAL_OVERRIDE;
virtual void _setSingleValue( const comphelper::PropertyInfo & rInfo, const ::com::sun::star::uno::Any &rValue )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException ) SAL_OVERRIDE;
virtual void _postSetValues ()
diff --git a/sw/source/core/uibase/uno/unomod.cxx b/sw/source/core/uibase/uno/unomod.cxx
index d70e371ac9cf..b279ce305d0d 100644
--- a/sw/source/core/uibase/uno/unomod.cxx
+++ b/sw/source/core/uibase/uno/unomod.cxx
@@ -276,7 +276,9 @@ SwXPrintSettings::~SwXPrintSettings()
}
void SwXPrintSettings::_preSetValues ()
- throw(UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException )
+ throw (UnknownPropertyException, PropertyVetoException,
+ IllegalArgumentException, WrappedTargetException,
+ RuntimeException)
{
switch (meType)
{