summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-25 13:55:59 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-25 14:27:46 +0000
commite6b2349ff0fc19451b4a8055239bc31ddf863dae (patch)
treea2f0dd6dcd951090735b8ef84fa98d721fd9cb9c
parentc80621d399bef649a57a3300efa7d4fab2746670 (diff)
coverity#738372 Uncaught exception
Change-Id: I83ebbdde3be1163bbd52bd1f4e49aab11e6d0e58
-rw-r--r--sw/inc/unotxdoc.hxx5
-rw-r--r--sw/source/ui/uno/unotxdoc.cxx4
2 files changed, 7 insertions, 2 deletions
diff --git a/sw/inc/unotxdoc.hxx b/sw/inc/unotxdoc.hxx
index 899efb21face..ef72f2c266ab 100644
--- a/sw/inc/unotxdoc.hxx
+++ b/sw/inc/unotxdoc.hxx
@@ -416,7 +416,10 @@ public:
virtual css::uno::Reference< css::container::XNameContainer > SAL_CALL getXForms( ) throw (css::uno::RuntimeException);
// css::document::XDocumentLanguages
- virtual css::uno::Sequence< css::lang::Locale > SAL_CALL getDocumentLanguages( ::sal_Int16 nScriptTypes, ::sal_Int16 nCount ) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException);
+ virtual css::uno::Sequence< css::lang::Locale > SAL_CALL getDocumentLanguages( ::sal_Int16 nScriptTypes, ::sal_Int16 nCount )
+ throw (css::lang::IllegalArgumentException,
+ css::uno::RuntimeException,
+ std::exception);
// css::text::XFlatParagraphIteratorProvider:
virtual css::uno::Reference< css::text::XFlatParagraphIterator > SAL_CALL getFlatParagraphIterator(::sal_Int32 nTextMarkupType, sal_Bool bAutomatic ) throw (css::uno::RuntimeException);
diff --git a/sw/source/ui/uno/unotxdoc.cxx b/sw/source/ui/uno/unotxdoc.cxx
index 49a685705099..b69a8d780337 100644
--- a/sw/source/ui/uno/unotxdoc.cxx
+++ b/sw/source/ui/uno/unotxdoc.cxx
@@ -3137,7 +3137,9 @@ void SAL_CALL SwXTextDocument::operator delete( void * p) throw()
uno::Sequence< lang::Locale > SAL_CALL SwXTextDocument::getDocumentLanguages(
::sal_Int16 nScriptTypes,
::sal_Int16 nMaxCount )
- throw (lang::IllegalArgumentException, uno::RuntimeException)
+ throw (lang::IllegalArgumentException,
+ uno::RuntimeException,
+ std::exception)
{
SolarMutexGuard aGuard;