summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-29 10:18:41 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-29 10:57:22 +0000
commit5bf532fa4d54fe5707f381568da2f0a666487a66 (patch)
treec69dfbd51f64db997e97a394b33b85a11b2f93ca /sc
parent037a639c1b5aca55bc07515c6e1da7c9b55f852f (diff)
coverity#1158318 Uncaught exception
Change-Id: Ia0bfd736262e9c22b18c094defee0779e8ce6515
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/viewuno.hxx3
-rw-r--r--sc/source/ui/unoobj/viewuno.cxx3
2 files changed, 4 insertions, 2 deletions
diff --git a/sc/inc/viewuno.hxx b/sc/inc/viewuno.hxx
index e6883f8058ba..7cf2f38ceeb1 100644
--- a/sc/inc/viewuno.hxx
+++ b/sc/inc/viewuno.hxx
@@ -236,7 +236,8 @@ public:
::com::sun::star::uno::RuntimeException,
std::exception);
virtual ::com::sun::star::uno::Any SAL_CALL getSelection()
- throw(::com::sun::star::uno::RuntimeException);
+ throw(::com::sun::star::uno::RuntimeException,
+ std::exception);
virtual void SAL_CALL addSelectionChangeListener( const ::com::sun::star::uno::Reference<
::com::sun::star::view::XSelectionChangeListener >& xListener )
throw(::com::sun::star::uno::RuntimeException);
diff --git a/sc/source/ui/unoobj/viewuno.cxx b/sc/source/ui/unoobj/viewuno.cxx
index 1f0428e9b6c0..deb16a824b81 100644
--- a/sc/source/ui/unoobj/viewuno.cxx
+++ b/sc/source/ui/unoobj/viewuno.cxx
@@ -879,7 +879,8 @@ sal_Bool SAL_CALL ScTabViewObj::select( const uno::Any& aSelection )
return bRet;
}
-uno::Any SAL_CALL ScTabViewObj::getSelection() throw(uno::RuntimeException)
+uno::Any SAL_CALL ScTabViewObj::getSelection()
+ throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
ScTabViewShell* pViewSh = GetViewShell();