summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-25 10:12:18 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-25 10:45:21 +0000
commitc9c4536b46d7e429d5a0ebc3f195bf90a72dd13e (patch)
tree96dbd02d03447c67cdf9c65b5cf8ebc5f82de295 /sc
parent4e640fef8ff1a7e31f56d406f6c010676499c711 (diff)
coverity#737632 Uncaught exception
Change-Id: I3faaddd4e9ecba80ab6dae8a20822374431b7c34
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/nameuno.hxx3
-rw-r--r--sc/source/ui/unoobj/nameuno.cxx2
2 files changed, 3 insertions, 2 deletions
diff --git a/sc/inc/nameuno.hxx b/sc/inc/nameuno.hxx
index 463aafb99b97..5d817f71218d 100644
--- a/sc/inc/nameuno.hxx
+++ b/sc/inc/nameuno.hxx
@@ -82,7 +82,8 @@ public:
/// XNamedRange
virtual OUString SAL_CALL getContent() throw(::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL setContent( const OUString& aContent )
- throw(::com::sun::star::uno::RuntimeException);
+ throw (::com::sun::star::uno::RuntimeException,
+ std::exception);
virtual ::com::sun::star::table::CellAddress SAL_CALL getReferencePosition()
throw(::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL setReferencePosition(
diff --git a/sc/source/ui/unoobj/nameuno.cxx b/sc/source/ui/unoobj/nameuno.cxx
index 645f98b8b49f..6861276c2293 100644
--- a/sc/source/ui/unoobj/nameuno.cxx
+++ b/sc/source/ui/unoobj/nameuno.cxx
@@ -245,7 +245,7 @@ OUString SAL_CALL ScNamedRangeObj::getContent() throw(uno::RuntimeException)
}
void SAL_CALL ScNamedRangeObj::setContent( const OUString& aContent )
- throw(uno::RuntimeException)
+ throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
OUString aContStr(aContent);