summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-25 14:06:23 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-25 14:10:50 +0000
commit6cb0a0733597a14fd3a806055f5c742349152c3e (patch)
tree92bff0f487c90a5460f5399f4a83ceec001a89c3 /sc
parentcd1e7c75b7318ea482458e45cf91202067290a49 (diff)
coverity#1158355 Uncaught exception
Change-Id: Ie40808c0fe78beca5b9c30b3ea5d60452b3212a4
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/cellsuno.hxx12
-rw-r--r--sc/source/ui/unoobj/cellsuno.cxx21
2 files changed, 16 insertions, 17 deletions
diff --git a/sc/inc/cellsuno.hxx b/sc/inc/cellsuno.hxx
index d039d490656c..82c3414c41dd 100644
--- a/sc/inc/cellsuno.hxx
+++ b/sc/inc/cellsuno.hxx
@@ -223,7 +223,8 @@ protected:
sal_uInt16 nItemWhich, const SfxItemPropertySimpleEntry* pEntry );
virtual void GetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry,
::com::sun::star::uno::Any& )
- throw(::com::sun::star::uno::RuntimeException);
+ throw(::com::sun::star::uno::RuntimeException,
+ std::exception);
virtual void SetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry,
const ::com::sun::star::uno::Any& aValue )
throw(::com::sun::star::lang::IllegalArgumentException,
@@ -618,7 +619,8 @@ protected:
virtual const SfxItemPropertyMap& GetItemPropertyMap();
virtual void GetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry,
::com::sun::star::uno::Any& )
- throw(::com::sun::star::uno::RuntimeException);
+ throw(::com::sun::star::uno::RuntimeException,
+ std::exception);
virtual void SetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry,
const ::com::sun::star::uno::Any& aValue )
throw(::com::sun::star::lang::IllegalArgumentException,
@@ -841,7 +843,8 @@ protected:
virtual const SfxItemPropertyMap& GetItemPropertyMap();
virtual void GetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry,
::com::sun::star::uno::Any& )
- throw(::com::sun::star::uno::RuntimeException);
+ throw(::com::sun::star::uno::RuntimeException,
+ std::exception);
virtual void SetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry,
const ::com::sun::star::uno::Any& aValue )
throw(::com::sun::star::lang::IllegalArgumentException,
@@ -1304,7 +1307,8 @@ protected:
virtual const SfxItemPropertyMap& GetItemPropertyMap();
virtual void GetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry,
::com::sun::star::uno::Any& )
- throw(::com::sun::star::uno::RuntimeException);
+ throw(::com::sun::star::uno::RuntimeException,
+ std::exception);
virtual void SetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry,
const ::com::sun::star::uno::Any& aValue )
throw(::com::sun::star::lang::IllegalArgumentException,
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx
index 7ffb8ca5c681..390af6dd0873 100644
--- a/sc/source/ui/unoobj/cellsuno.cxx
+++ b/sc/source/ui/unoobj/cellsuno.cxx
@@ -2462,9 +2462,8 @@ uno::Any SAL_CALL ScCellRangesBase::getPropertyValue( const OUString& aPropertyN
return aAny;
}
-void ScCellRangesBase::GetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry,
- uno::Any& rAny )
- throw(uno::RuntimeException)
+void ScCellRangesBase::GetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry, uno::Any& rAny )
+ throw(uno::RuntimeException, std::exception)
{
if ( pEntry )
{
@@ -5992,9 +5991,8 @@ void ScCellRangeObj::SetOnePropertyValue( const SfxItemPropertySimpleEntry* pEnt
ScCellRangesBase::SetOnePropertyValue( pEntry, aValue );
}
-void ScCellRangeObj::GetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry,
- uno::Any& rAny )
- throw(uno::RuntimeException)
+void ScCellRangeObj::GetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry, uno::Any& rAny )
+ throw(uno::RuntimeException, std::exception)
{
if ( pEntry )
{
@@ -6027,7 +6025,6 @@ void ScCellRangeObj::GetOnePropertyValue( const SfxItemPropertySimpleEntry* pEnt
}
else
ScCellRangesBase::GetOnePropertyValue( pEntry, rAny );
-
}
}
@@ -6738,9 +6735,8 @@ void ScCellObj::SetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry, c
}
}
-void ScCellObj::GetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry,
- uno::Any& rAny )
- throw(uno::RuntimeException)
+void ScCellObj::GetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry, uno::Any& rAny )
+ throw(uno::RuntimeException, std::exception)
{
if ( pEntry )
{
@@ -9045,9 +9041,8 @@ void ScTableRowObj::SetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntr
}
}
-void ScTableRowObj::GetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry,
- uno::Any& rAny )
- throw(uno::RuntimeException)
+void ScTableRowObj::GetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry, uno::Any& rAny )
+ throw(uno::RuntimeException, std::exception)
{
if ( pEntry )
{