summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-25 14:01:22 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-25 14:04:14 +0000
commitcd1e7c75b7318ea482458e45cf91202067290a49 (patch)
tree5c5ade0da6442dfaafe8329d012ecc6adb62cc2f
parentb777fc2fdceee42d1ff52b495425b5f69ce680f5 (diff)
coverity#1158355 Uncaught exception
Change-Id: I60dff924402b026c1f5d678ce81889396a0f8bd8
-rw-r--r--sc/inc/cellsuno.hxx9
-rw-r--r--sc/source/ui/unoobj/cellsuno.cxx6
2 files changed, 9 insertions, 6 deletions
diff --git a/sc/inc/cellsuno.hxx b/sc/inc/cellsuno.hxx
index 1f89aa614cc1..d039d490656c 100644
--- a/sc/inc/cellsuno.hxx
+++ b/sc/inc/cellsuno.hxx
@@ -227,7 +227,8 @@ protected:
virtual void SetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry,
const ::com::sun::star::uno::Any& aValue )
throw(::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::RuntimeException,
+ std::exception);
public:
ScCellRangesBase(ScDocShell* pDocSh, const ScRange& rR);
@@ -621,7 +622,8 @@ protected:
virtual void SetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry,
const ::com::sun::star::uno::Any& aValue )
throw(::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::RuntimeException,
+ std::exception);
::com::sun::star::uno::Reference< ::com::sun::star::table::XCell >
GetCellByPosition_Impl( sal_Int32 nColumn, sal_Int32 nRow )
@@ -1306,7 +1308,8 @@ protected:
virtual void SetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry,
const ::com::sun::star::uno::Any& aValue )
throw(::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::RuntimeException,
+ std::exception);
public:
ScTableRowObj(ScDocShell* pDocSh, SCROW nRow, SCTAB nTab);
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx
index 3fe3fb0834bd..7ffb8ca5c681 100644
--- a/sc/source/ui/unoobj/cellsuno.cxx
+++ b/sc/source/ui/unoobj/cellsuno.cxx
@@ -2265,7 +2265,7 @@ void SAL_CALL ScCellRangesBase::setPropertyValue(
}
void ScCellRangesBase::SetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry, const uno::Any& aValue )
- throw(lang::IllegalArgumentException, uno::RuntimeException)
+ throw(lang::IllegalArgumentException, uno::RuntimeException, std::exception)
{
if ( pEntry )
{
@@ -5984,7 +5984,7 @@ uno::Reference<beans::XPropertySetInfo> SAL_CALL ScCellRangeObj::getPropertySetI
}
void ScCellRangeObj::SetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry, const uno::Any& aValue )
- throw(lang::IllegalArgumentException, uno::RuntimeException)
+ throw(lang::IllegalArgumentException, uno::RuntimeException, std::exception)
{
// Range has only Position and Size in addition to ScCellRangesBase, both are ReadOnly
// -> nothing to do here
@@ -8970,7 +8970,7 @@ uno::Reference<beans::XPropertySetInfo> SAL_CALL ScTableRowObj::getPropertySetIn
}
void ScTableRowObj::SetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry, const uno::Any& aValue )
- throw(lang::IllegalArgumentException, uno::RuntimeException)
+ throw(lang::IllegalArgumentException, uno::RuntimeException, std::exception)
{
if ( pEntry )
{