summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-27 12:32:32 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-27 14:38:35 +0000
commitb9a2c2e58c1544b81d09a9c4dbe1d21d11c1f5ed (patch)
tree99df9cab612f465cc4d3ec5ba4135a46f51e461b /sc
parentc17d9288a8631f7cbe16134e7ccd1bfc8776b014 (diff)
coverity#1158323 Uncaught exception
Change-Id: I26d1730636b172aa4b9f8b2b9593f408cd466118
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/docuno.hxx4
-rw-r--r--sc/source/ui/unoobj/docuno.cxx3
2 files changed, 5 insertions, 2 deletions
diff --git a/sc/inc/docuno.hxx b/sc/inc/docuno.hxx
index 2d0c3624d03e..952c1f54f53d 100644
--- a/sc/inc/docuno.hxx
+++ b/sc/inc/docuno.hxx
@@ -798,7 +798,9 @@ public:
throw(::com::sun::star::uno::RuntimeException);
/// XIndexAccess
- virtual sal_Int32 SAL_CALL getCount() throw(::com::sun::star::uno::RuntimeException);
+ virtual sal_Int32 SAL_CALL getCount()
+ throw(::com::sun::star::uno::RuntimeException,
+ std::exception);
virtual ::com::sun::star::uno::Any SAL_CALL getByIndex( sal_Int32 Index )
throw(::com::sun::star::lang::IndexOutOfBoundsException,
::com::sun::star::lang::WrappedTargetException,
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index bafc71e9631a..4fba8de931d7 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -3596,7 +3596,8 @@ uno::Reference<container::XEnumeration> SAL_CALL ScAnnotationsObj::createEnumera
// XIndexAccess
-sal_Int32 SAL_CALL ScAnnotationsObj::getCount() throw(uno::RuntimeException)
+sal_Int32 SAL_CALL ScAnnotationsObj::getCount()
+ throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
sal_Int32 nCount = 0;