diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-11-08 09:21:11 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-11-08 09:31:07 +0000 |
commit | bca707d0ec55c35e048405b05c9e283cf6b97239 (patch) | |
tree | 6fed803b9e8149e70cc4a037a9d82672810f44c4 /sd | |
parent | dca61b588a2426cfe9a18e4a1074b380e42884d7 (diff) |
coverity#1394269 Uncaught exception
and
coverity#1394270 Uncaught exception
Change-Id: I91e62c595ed923e44eea4c4fa1ac77444e34a9d9
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/unoidl/unoobj.cxx | 5 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unoobj.hxx | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/sd/source/ui/unoidl/unoobj.cxx b/sd/source/ui/unoidl/unoobj.cxx index 93c6ca0d9f39..83db0e65488f 100644 --- a/sd/source/ui/unoidl/unoobj.cxx +++ b/sd/source/ui/unoidl/unoobj.cxx @@ -894,7 +894,7 @@ bool SdXShape::IsPresObj() const /** checks if this presentation object is empty */ -bool SdXShape::IsEmptyPresObj() const throw() +bool SdXShape::IsEmptyPresObj() const { SdrObject* pObj = mpShape->GetSdrObject(); if( (pObj != nullptr) && pObj->IsEmptyPresObj() ) @@ -934,12 +934,11 @@ OUString SdXShape::GetPlaceholderText() const return OUString(); return pPage->GetPresObjText( pPage->GetPresObjKind(pObj) ); - } +} /** sets/reset the empty status of a presentation object */ void SdXShape::SetEmptyPresObj(bool bEmpty) - throw (css::uno::RuntimeException, std::exception) { // only possible if this actually *is* a presentation object if( !IsPresObj() ) diff --git a/sd/source/ui/unoidl/unoobj.hxx b/sd/source/ui/unoidl/unoobj.hxx index 947d11d852ca..a465de1e64d0 100644 --- a/sd/source/ui/unoidl/unoobj.hxx +++ b/sd/source/ui/unoidl/unoobj.hxx @@ -55,9 +55,8 @@ private: bool IsPresObj() const throw (std::exception); - bool IsEmptyPresObj() const throw(); - void SetEmptyPresObj(bool bEmpty) - throw (css::uno::RuntimeException, std::exception); + bool IsEmptyPresObj() const; + void SetEmptyPresObj(bool bEmpty); bool IsMasterDepend() const throw(); void SetMasterDepend( bool bDepend ) throw(); |