summaryrefslogtreecommitdiffstats
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-25 10:16:18 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-25 10:45:23 +0000
commita760a41080599f4a6aaab8628e15098fdb0b2d28 (patch)
tree03d484cda60581bb2a0f57726d3e51f843507d71 /sc
parentcoverity#737643 Uncaught exception (diff)
downloadcore-a760a41080599f4a6aaab8628e15098fdb0b2d28.tar.gz
core-a760a41080599f4a6aaab8628e15098fdb0b2d28.zip
coverity#737649 Uncaught exception
Change-Id: I6ab46cc817f2858ae1a92757d8c26d6145f934b8
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/nameuno.hxx3
-rw-r--r--sc/source/ui/unoobj/nameuno.cxx5
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 );