summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-28 09:53:38 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-28 11:29:21 +0000
commit6ea531369227b5014edc8cbaab0a57dd15fa0bbd (patch)
tree9f9578c4c30f4a8596f988940b4b154e93bb0342 /sc
parent6bdfbb1eac02708946c63fca3c4ef7e9062742c2 (diff)
coverity#1158319 Uncaught exception
Change-Id: I3b8af150fd84991ce27e311676bb1e1fe3669081
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/shapeuno.hxx4
-rw-r--r--sc/source/ui/unoobj/shapeuno.cxx3
2 files changed, 5 insertions, 2 deletions
diff --git a/sc/inc/shapeuno.hxx b/sc/inc/shapeuno.hxx
index 791699025c3b..73a0f3237e3b 100644
--- a/sc/inc/shapeuno.hxx
+++ b/sc/inc/shapeuno.hxx
@@ -165,7 +165,9 @@ public:
throw( ::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException );
virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL
- getAnchor(void) throw( ::com::sun::star::uno::RuntimeException );
+ getAnchor()
+ throw(::com::sun::star::uno::RuntimeException,
+ std::exception);
// XComponent
virtual void SAL_CALL dispose(void) throw( ::com::sun::star::uno::RuntimeException );
diff --git a/sc/source/ui/unoobj/shapeuno.cxx b/sc/source/ui/unoobj/shapeuno.cxx
index 6d7d942abe9c..1ed1198900f0 100644
--- a/sc/source/ui/unoobj/shapeuno.cxx
+++ b/sc/source/ui/unoobj/shapeuno.cxx
@@ -1027,7 +1027,8 @@ void SAL_CALL ScShapeObj::attach( const uno::Reference<text::XTextRange>& /* xTe
throw lang::IllegalArgumentException(); // anchor cannot be changed
}
-uno::Reference<text::XTextRange> SAL_CALL ScShapeObj::getAnchor() throw(uno::RuntimeException)
+uno::Reference<text::XTextRange> SAL_CALL ScShapeObj::getAnchor()
+ throw(uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;