From c8b78a1ca2940a0db1a8298ccecc779695cda7e5 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 13 Jun 2014 10:55:30 +0100 Subject: coverity#706287 uncaught exception Change-Id: Ie2ec61c75d036dbad68bd43d5a2eb9834dadd735 --- comphelper/source/property/propertysethelper.cxx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'comphelper') 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 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 ) ); } } -- cgit