diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-25 10:16:18 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-25 10:45:23 +0000 |
commit | a760a41080599f4a6aaab8628e15098fdb0b2d28 (patch) | |
tree | 03d484cda60581bb2a0f57726d3e51f843507d71 /sc | |
parent | coverity#737643 Uncaught exception (diff) | |
download | core-a760a41080599f4a6aaab8628e15098fdb0b2d28.tar.gz core-a760a41080599f4a6aaab8628e15098fdb0b2d28.zip |
coverity#737649 Uncaught exception
Change-Id: I6ab46cc817f2858ae1a92757d8c26d6145f934b8
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/nameuno.hxx | 3 | ||||
-rw-r--r-- | sc/source/ui/unoobj/nameuno.cxx | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/sc/inc/nameuno.hxx b/sc/inc/nameuno.hxx index 3f2ee9226f0f..4e82e6e16699 100644 --- a/sc/inc/nameuno.hxx +++ b/sc/inc/nameuno.hxx @@ -214,7 +214,8 @@ public: /// XNamedRanges virtual void SAL_CALL addNewByName( const OUString& aName, const OUString& aContent, const ::com::sun::star::table::CellAddress& aPosition, sal_Int32 nType ) - throw(::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, + std::exception); virtual void SAL_CALL addNewFromTitles( const ::com::sun::star::table::CellRangeAddress& aSource, ::com::sun::star::sheet::Border aBorder ) throw(::com::sun::star::uno::RuntimeException); diff --git a/sc/source/ui/unoobj/nameuno.cxx b/sc/source/ui/unoobj/nameuno.cxx index c130c465db56..502754fd650e 100644 --- a/sc/source/ui/unoobj/nameuno.cxx +++ b/sc/source/ui/unoobj/nameuno.cxx @@ -505,8 +505,9 @@ bool ScNamedRangesObj::IsModifyAndBroadcast() const // sheet::XNamedRanges void SAL_CALL ScNamedRangesObj::addNewByName( const OUString& aName, - const OUString& aContent, const table::CellAddress& aPosition, - sal_Int32 nUnoType ) throw(uno::RuntimeException) + const OUString& aContent, const table::CellAddress& aPosition, + sal_Int32 nUnoType ) + throw (uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; ScAddress aPos( (SCCOL)aPosition.Column, (SCROW)aPosition.Row, aPosition.Sheet ); |