summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-13 10:55:30 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-13 11:16:32 +0100
commitc8b78a1ca2940a0db1a8298ccecc779695cda7e5 (patch)
treec714eaacd0b219019b6b4faf1f5b9fb769c05100 /comphelper
parent5e46374df0a0947d60aa5d0f99856dd7f3ea1cb9 (diff)
coverity#706287 uncaught exception
Change-Id: Ie2ec61c75d036dbad68bd43d5a2eb9834dadd735
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/property/propertysethelper.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/comphelper/source/property/propertysethelper.cxx b/comphelper/source/property/propertysethelper.cxx
index bb75254305a1..66b7843fc137 100644
--- a/comphelper/source/property/propertysethelper.cxx
+++ b/comphelper/source/property/propertysethelper.cxx
@@ -129,18 +129,19 @@ void SAL_CALL PropertySetHelper::removeVetoableChangeListener( const OUString&,
}
// XMultiPropertySet
-void SAL_CALL PropertySetHelper::setPropertyValues( const Sequence< OUString >& aPropertyNames, const Sequence< Any >& aValues ) throw(PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException, std::exception)
+void SAL_CALL PropertySetHelper::setPropertyValues( const Sequence< OUString >& rPropertyNames, const Sequence< Any >& rValues )
+ throw (PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException, std::exception)
{
- const sal_Int32 nCount = aPropertyNames.getLength();
+ const sal_Int32 nCount = rPropertyNames.getLength();
- if( nCount != aValues.getLength() )
+ if( nCount != rValues.getLength() )
throw IllegalArgumentException();
if( nCount )
{
boost::scoped_array<PropertyMapEntry const *> pEntries(new PropertyMapEntry const *[nCount+1]);
pEntries[nCount] = NULL;
- const OUString* pNames = aPropertyNames.getConstArray();
+ const OUString* pNames = rPropertyNames.getConstArray();
bool bUnknown = false;
sal_Int32 n;
@@ -151,10 +152,10 @@ void SAL_CALL PropertySetHelper::setPropertyValues( const Sequence< OUString >&
}
if( !bUnknown )
- _setPropertyValues( (const PropertyMapEntry**)pEntries.get(), aValues.getConstArray() );
+ _setPropertyValues( (const PropertyMapEntry**)pEntries.get(), rValues.getConstArray() );
if( bUnknown )
- throw UnknownPropertyException( *pNames, static_cast< XPropertySet* >( this ) );
+ throw RuntimeException( *pNames, static_cast< XPropertySet* >( this ) );
}
}