diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-27 09:12:29 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-27 11:14:27 +0000 |
commit | 5c1d8983c2cb6602c45659263bc65951947f00c4 (patch) | |
tree | a57f2be00babd98474e907976f31b52dd97121ae | |
parent | c30527b80365392629d06f404db314932b8238df (diff) |
coverity#1158335 Uncaught exception
Change-Id: If0d55c853924b3c11477afd802cd0db542279907
-rw-r--r-- | sc/inc/chart2uno.hxx | 3 | ||||
-rw-r--r-- | sc/source/ui/unoobj/chart2uno.cxx | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sc/inc/chart2uno.hxx b/sc/inc/chart2uno.hxx index d15a07036e43..5650f27f7c52 100644 --- a/sc/inc/chart2uno.hxx +++ b/sc/inc/chart2uno.hxx @@ -259,7 +259,8 @@ public: throw (::com::sun::star::uno::RuntimeException); virtual ::sal_Int32 SAL_CALL getNumberFormatKeyByIndex( ::sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, - ::com::sun::star::uno::RuntimeException); + ::com::sun::star::uno::RuntimeException, + std::exception); // XNumericalDataSequence virtual ::com::sun::star::uno::Sequence< double > diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx index d5339545d9f2..59d060c7dd14 100644 --- a/sc/source/ui/unoobj/chart2uno.cxx +++ b/sc/source/ui/unoobj/chart2uno.cxx @@ -3250,8 +3250,7 @@ sal_uLong getDisplayNumberFormat(ScDocument* pDoc, const ScAddress& rPos) } ::sal_Int32 SAL_CALL ScChart2DataSequence::getNumberFormatKeyByIndex( ::sal_Int32 nIndex ) - throw (lang::IndexOutOfBoundsException, - uno::RuntimeException) + throw (lang::IndexOutOfBoundsException, uno::RuntimeException, std::exception) { // index -1 means a heuristic value for the entire sequence bool bGetSeriesFormat = (nIndex == -1); |