diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-25 13:11:18 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-25 14:27:39 +0000 |
commit | c4ccc9fd660b8ab1c60e27c1d7c738dddd71941d (patch) | |
tree | 87b678c909f0388137c063d2a73da6a1629d52f1 /sw | |
parent | 79b8b730b9441d919319c1d6090194c7f16fd89b (diff) |
coverity#738280 Uncaught exception
Change-Id: Ia8614dba4bdbe2f4762819765ee99c2ab5d84fb6
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/unotbl.hxx | 4 | ||||
-rw-r--r-- | sw/source/core/unocore/unotbl.cxx | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/sw/inc/unotbl.hxx b/sw/inc/unotbl.hxx index 6aa57a609900..1b2a94cf270b 100644 --- a/sw/inc/unotbl.hxx +++ b/sw/inc/unotbl.hxx @@ -602,7 +602,9 @@ public: virtual sal_Bool SAL_CALL hasElements( ) throw(::com::sun::star::uno::RuntimeException); //XTableColumns - virtual void SAL_CALL insertByIndex(sal_Int32 nIndex, sal_Int32 nCount) throw( ::com::sun::star::uno::RuntimeException ); + virtual void SAL_CALL insertByIndex(sal_Int32 nIndex, sal_Int32 nCount) + throw (::com::sun::star::uno::RuntimeException, + std::exception); virtual void SAL_CALL removeByIndex(sal_Int32 nIndex, sal_Int32 nCount) throw( ::com::sun::star::uno::RuntimeException ); //XServiceInfo diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx index 7705d6f46009..d2f5df213420 100644 --- a/sw/source/core/unocore/unotbl.cxx +++ b/sw/source/core/unocore/unotbl.cxx @@ -5019,7 +5019,8 @@ sal_Bool SwXTableColumns::hasElements(void) throw( uno::RuntimeException ) } ///@see SwXTableRows::insertByIndex (TODO: seems to be C&P programming here) -void SwXTableColumns::insertByIndex(sal_Int32 nIndex, sal_Int32 nCount) throw( uno::RuntimeException ) +void SwXTableColumns::insertByIndex(sal_Int32 nIndex, sal_Int32 nCount) + throw (uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; if (nCount == 0) |