summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-10 10:53:58 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-10 11:21:13 +0000
commit1439c0de1b1bdb25426a68357da75b20ebe0d9e5 (patch)
tree6a507a5ddd768f6753ac137349072e75ac683ca3 /sc
parent8c002d6f1a50b6f0c6fe6cb3f25d426f6196e259 (diff)
coverity#1078996 Uncaught exception
Change-Id: Ib1a50408016c61c9ddd26c74e22810567009996e
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/docuno.hxx3
-rw-r--r--sc/source/ui/unoobj/docuno.cxx4
2 files changed, 4 insertions, 3 deletions
diff --git a/sc/inc/docuno.hxx b/sc/inc/docuno.hxx
index 907f2021e371..e6f53f7f3314 100644
--- a/sc/inc/docuno.hxx
+++ b/sc/inc/docuno.hxx
@@ -426,7 +426,8 @@ public:
std::exception);
virtual void SAL_CALL copyByName( const OUString& aName,
const OUString& aCopy, sal_Int16 nDestination )
- throw(::com::sun::star::uno::RuntimeException);
+ throw(::com::sun::star::uno::RuntimeException,
+ std::exception);
/// XSpreadsheets2
virtual sal_Int32 SAL_CALL importSheet(
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index 6144d7f9a423..89cb922f7dc2 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -2572,8 +2572,8 @@ void SAL_CALL ScTableSheetsObj::moveByName( const OUString& aName, sal_Int16 nDe
}
void SAL_CALL ScTableSheetsObj::copyByName( const OUString& aName,
- const OUString& aCopy, sal_Int16 nDestination )
- throw(uno::RuntimeException)
+ const OUString& aCopy, sal_Int16 nDestination )
+ throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
sal_Bool bDone = false;