diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-25 10:15:30 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-25 10:45:22 +0000 |
commit | 3f94ccfe58b3c65d172767a7f9e7874a08b7a209 (patch) | |
tree | 94983255c96aaf6c585026534736df2ad071b2d6 /sc | |
parent | f87bfc8d83015c028f10ca65e6fe11313bddedfc (diff) |
coverity#737643 Uncaught exception
Change-Id: Ie200b47adae43844fcb6be349bec51b949e65675
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/nameuno.hxx | 3 | ||||
-rw-r--r-- | sc/source/ui/unoobj/nameuno.cxx | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sc/inc/nameuno.hxx b/sc/inc/nameuno.hxx index cbd06fe9e4ca..3f2ee9226f0f 100644 --- a/sc/inc/nameuno.hxx +++ b/sc/inc/nameuno.hxx @@ -101,7 +101,8 @@ public: std::exception); virtual void SAL_CALL setTokens( const ::com::sun::star::uno::Sequence< ::com::sun::star::sheet::FormulaToken >& aTokens ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, + std::exception); /// XNamed virtual OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException); diff --git a/sc/source/ui/unoobj/nameuno.cxx b/sc/source/ui/unoobj/nameuno.cxx index ea23cbcbadb4..c130c465db56 100644 --- a/sc/source/ui/unoobj/nameuno.cxx +++ b/sc/source/ui/unoobj/nameuno.cxx @@ -337,7 +337,8 @@ uno::Sequence<sheet::FormulaToken> SAL_CALL ScNamedRangeObj::getTokens() return aSequence; } -void SAL_CALL ScNamedRangeObj::setTokens( const uno::Sequence<sheet::FormulaToken>& rTokens ) throw(uno::RuntimeException) +void SAL_CALL ScNamedRangeObj::setTokens( const uno::Sequence<sheet::FormulaToken>& rTokens ) + throw (uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; if( pDocShell ) |