summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-25 15:11:41 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-25 16:12:17 +0000
commitd719713cd8d8779f2ecb39382cd6ddc29d7bd6ef (patch)
treeb07c7078bdc74a8195f1acf6fd41e7a92464e0d5
parent9fa17abcf6e01d65b6151db9858fa0e25272c63d (diff)
coverity#738423 Uncaught exception
Change-Id: I7cdfd3e6331d0e600a022bc93be60df5e9bceaee
-rw-r--r--sw/source/ui/inc/unotxvw.hxx6
-rw-r--r--sw/source/ui/uno/unotxvw.cxx3
2 files changed, 7 insertions, 2 deletions
diff --git a/sw/source/ui/inc/unotxvw.hxx b/sw/source/ui/inc/unotxvw.hxx
index d4310488dcd3..7f83015184b0 100644
--- a/sw/source/ui/inc/unotxvw.hxx
+++ b/sw/source/ui/inc/unotxvw.hxx
@@ -281,7 +281,11 @@ public:
::com::sun::star::uno::RuntimeException,
std::exception);
virtual void SAL_CALL setPropertyToDefault( const OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Any SAL_CALL getPropertyDefault( const OUString& aPropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Any SAL_CALL getPropertyDefault( const OUString& aPropertyName )
+ throw (::com::sun::star::beans::UnknownPropertyException,
+ ::com::sun::star::lang::WrappedTargetException,
+ ::com::sun::star::uno::RuntimeException,
+ std::exception);
//XServiceInfo
virtual OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
diff --git a/sw/source/ui/uno/unotxvw.cxx b/sw/source/ui/uno/unotxvw.cxx
index 8baf94f6bc17..9929eceb5ae8 100644
--- a/sw/source/ui/uno/unotxvw.cxx
+++ b/sw/source/ui/uno/unotxvw.cxx
@@ -1599,7 +1599,8 @@ void SwXTextViewCursor::setPropertyToDefault( const OUString& rPropertyName )
}
Any SwXTextViewCursor::getPropertyDefault( const OUString& rPropertyName )
- throw(UnknownPropertyException, WrappedTargetException, RuntimeException)
+ throw (UnknownPropertyException, WrappedTargetException,
+ RuntimeException, std::exception)
{
Any aRet;
SolarMutexGuard aGuard;