summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-09-02 15:36:28 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-09-02 15:36:28 +0100
commitd375986dae5a685ebd8f4d7d011d24a838608e75 (patch)
tree887ffe18afc9826eecc41e19d9cf19bd60e01fdf /scripting
parentd1c18edd3fe5bafd9922d75e5626973197e4b78f (diff)
coverity#707084 Uncaught exception
Change-Id: I89459f7a77fcb5785cfb2e8288326fce65202d9c
Diffstat (limited to 'scripting')
-rw-r--r--scripting/source/stringresource/stringresource.cxx4
-rw-r--r--scripting/source/stringresource/stringresource.hxx3
2 files changed, 5 insertions, 2 deletions
diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx
index 739525449924..b38ddc638b18 100644
--- a/scripting/source/stringresource/stringresource.cxx
+++ b/scripting/source/stringresource/stringresource.cxx
@@ -2864,7 +2864,9 @@ void StringResourceWithLocationImpl::storeAsURL( const OUString& URL )
}
void StringResourceWithLocationImpl::setURL( const OUString& URL )
- throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception)
+ throw (css::lang::IllegalArgumentException,
+ css::lang::NoSupportException,
+ css::uno::RuntimeException, std::exception)
{
::osl::MutexGuard aGuard( getMutex() );
implCheckReadOnly( "StringResourceWithLocationImpl::setURL(): Read only" );
diff --git a/scripting/source/stringresource/stringresource.hxx b/scripting/source/stringresource/stringresource.hxx
index 5a74e6e43eaa..5be7acd0f66c 100644
--- a/scripting/source/stringresource/stringresource.hxx
+++ b/scripting/source/stringresource/stringresource.hxx
@@ -668,7 +668,8 @@ public:
virtual void SAL_CALL storeAsURL( const OUString& URL )
throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL setURL( const OUString& URL )
- throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
+ throw (css::lang::IllegalArgumentException, css::lang::NoSupportException,
+ css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
};