diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-25 13:12:15 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-25 14:27:40 +0000 |
commit | 062249564863659e6e10f9ab34c74792dcbef8dd (patch) | |
tree | 0958095498d3978e985d0fd4e7a83fedcf086e4a | |
parent | c4ccc9fd660b8ab1c60e27c1d7c738dddd71941d (diff) |
coverity#738282 Uncaught exception
Change-Id: Ia5dd51a19778f370c85544a0fea9833ed6dff909
-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 1b2a94cf270b..fd898ef7a963 100644 --- a/sw/inc/unotbl.hxx +++ b/sw/inc/unotbl.hxx @@ -605,7 +605,9 @@ public: 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 ); + virtual void SAL_CALL removeByIndex(sal_Int32 nIndex, sal_Int32 nCount) + throw (::com::sun::star::uno::RuntimeException, + std::exception); //XServiceInfo virtual OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException ); diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx index d2f5df213420..15fb2af6f780 100644 --- a/sw/source/core/unocore/unotbl.cxx +++ b/sw/source/core/unocore/unotbl.cxx @@ -5074,7 +5074,8 @@ void SwXTableColumns::insertByIndex(sal_Int32 nIndex, sal_Int32 nCount) } ///@see SwXTableRows::removeByIndex (TODO: seems to be C&P programming here) -void SwXTableColumns::removeByIndex(sal_Int32 nIndex, sal_Int32 nCount) throw( uno::RuntimeException ) +void SwXTableColumns::removeByIndex(sal_Int32 nIndex, sal_Int32 nCount) + throw (uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; if (nCount == 0) |