summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-13 10:52:39 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-13 11:16:32 +0100
commit5e46374df0a0947d60aa5d0f99856dd7f3ea1cb9 (patch)
tree84742e45e694f5fda0e09364ef468bed00727168 /comphelper
parent0466c0dcddd3b5af02c711794e8cd4c3c6c12993 (diff)
coverity#706286 uncaught exception
Change-Id: Ic951a16c3d44b36ce82f05381c98e13e74b8bc35
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/property/propertysethelper.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/comphelper/source/property/propertysethelper.cxx b/comphelper/source/property/propertysethelper.cxx
index 1ffc72455ef9..bb75254305a1 100644
--- a/comphelper/source/property/propertysethelper.cxx
+++ b/comphelper/source/property/propertysethelper.cxx
@@ -158,16 +158,17 @@ void SAL_CALL PropertySetHelper::setPropertyValues( const Sequence< OUString >&
}
}
-Sequence< Any > SAL_CALL PropertySetHelper::getPropertyValues( const Sequence< OUString >& aPropertyNames ) throw(RuntimeException, std::exception)
+Sequence< Any > SAL_CALL PropertySetHelper::getPropertyValues(const Sequence< OUString >& rPropertyNames)
+ throw (RuntimeException, std::exception)
{
- const sal_Int32 nCount = aPropertyNames.getLength();
+ const sal_Int32 nCount = rPropertyNames.getLength();
Sequence< Any > aValues;
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;
@@ -184,7 +185,7 @@ Sequence< Any > SAL_CALL PropertySetHelper::getPropertyValues( const Sequence< O
}
if( bUnknown )
- throw UnknownPropertyException( *pNames, static_cast< XPropertySet* >( this ) );
+ throw RuntimeException( *pNames, static_cast< XPropertySet* >( this ) );
}
return aValues;