From 0e51bb8ca0fb362a8c39282168a453c438ba8772 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 29 Jan 2014 11:16:42 +0000 Subject: coverity#1158310 Uncaught exception Change-Id: I38fcbe9aa35283b9287962a2974365ceb29df37c --- sc/inc/viewuno.hxx | 3 ++- sc/source/ui/unoobj/viewuno.cxx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sc/inc/viewuno.hxx b/sc/inc/viewuno.hxx index 6b976268aee5..c6c676dbd148 100644 --- a/sc/inc/viewuno.hxx +++ b/sc/inc/viewuno.hxx @@ -401,7 +401,8 @@ public: // XSelectedSheetsSupplier virtual ::com::sun::star::uno::Sequence SAL_CALL getSelectedSheets() - throw(::com::sun::star::uno::RuntimeException); + throw(::com::sun::star::uno::RuntimeException, + std::exception); }; class ScPreviewObj : public SfxBaseController, diff --git a/sc/source/ui/unoobj/viewuno.cxx b/sc/source/ui/unoobj/viewuno.cxx index ca51e4f45538..b611a3d93019 100644 --- a/sc/source/ui/unoobj/viewuno.cxx +++ b/sc/source/ui/unoobj/viewuno.cxx @@ -2330,7 +2330,7 @@ uno::Sequence toSequence(const ScMarkData::MarkedTabsType& rSelected) } uno::Sequence ScTabViewObj::getSelectedSheets() - throw (uno::RuntimeException) + throw (uno::RuntimeException, std::exception) { ScTabViewShell* pViewSh = GetViewShell(); if (!pViewSh) -- cgit