summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-21 13:26:27 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-21 15:30:24 +0000
commit7af46fb2f080c014a5330c08a6b773dd8c757964 (patch)
tree9d3f4680b2a95d64f77dc43acfabb0f2e4657329
parent121446a6ffedecf18d88421c821b3faa323e03a5 (diff)
coverity#706691 Uncaught exception
Change-Id: I130f80a45f3d207c34bdc2b4b3cff9536fbe185c
-rw-r--r--sc/inc/cellsuno.hxx6
-rw-r--r--sc/source/ui/unoobj/cellsuno.cxx5
2 files changed, 7 insertions, 4 deletions
diff --git a/sc/inc/cellsuno.hxx b/sc/inc/cellsuno.hxx
index 1e8eac78716e..a5b596b2c93e 100644
--- a/sc/inc/cellsuno.hxx
+++ b/sc/inc/cellsuno.hxx
@@ -768,9 +768,11 @@ public:
virtual ::com::sun::star::uno::Reference< ::com::sun::star::sheet::XSubTotalDescriptor > SAL_CALL
createSubTotalDescriptor( sal_Bool bEmpty )
throw(::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL applySubTotals( const ::com::sun::star::uno::Reference<
+ virtual void SAL_CALL applySubTotals(const ::com::sun::star::uno::Reference<
::com::sun::star::sheet::XSubTotalDescriptor >& xDescriptor,
- sal_Bool bReplace ) throw(::com::sun::star::uno::RuntimeException);
+ sal_Bool bReplace)
+ throw (::com::sun::star::uno::RuntimeException,
+ std::exception);
virtual void SAL_CALL removeSubTotals() throw(::com::sun::star::uno::RuntimeException);
// XImportable
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx
index 94775569fd90..9abcc28e92e6 100644
--- a/sc/source/ui/unoobj/cellsuno.cxx
+++ b/sc/source/ui/unoobj/cellsuno.cxx
@@ -5835,8 +5835,9 @@ uno::Reference<sheet::XSubTotalDescriptor> SAL_CALL ScCellRangeObj::createSubTot
}
void SAL_CALL ScCellRangeObj::applySubTotals(
- const uno::Reference<sheet::XSubTotalDescriptor>& xDescriptor,
- sal_Bool bReplace ) throw(uno::RuntimeException)
+ const uno::Reference<sheet::XSubTotalDescriptor>& xDescriptor,
+ sal_Bool bReplace)
+ throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;