Kaydet (Commit) 5e46374d authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#706286 uncaught exception

Change-Id: Ic951a16c3d44b36ce82f05381c98e13e74b8bc35
üst 0466c0dc
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment