#i101587# fix illegal handle access
This commit is contained in:
parent
242ee2ea8f
commit
06929bc1b0
2 changed files with 5 additions and 4 deletions
|
@ -168,10 +168,11 @@ namespace comphelper
|
|||
// will throw an UnknownPropertyException if necessary
|
||||
if ( ( rProp.Attributes & PropertyAttribute::REMOVEABLE ) == 0 )
|
||||
throw NotRemoveableException( ::rtl::OUString(), NULL );
|
||||
const sal_Int32 nHandle = rProp.Handle;
|
||||
|
||||
revokeProperty( rProp.Handle );
|
||||
revokeProperty( nHandle );
|
||||
|
||||
m_pImpl->aDefaults.erase( rProp.Handle );
|
||||
m_pImpl->aDefaults.erase( nHandle );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
|
|
|
@ -76,12 +76,12 @@ namespace
|
|||
// comparing two property descriptions (by name)
|
||||
struct PropertyDescriptionNameMatch : public ::std::unary_function< PropertyDescription, bool >
|
||||
{
|
||||
const ::rtl::OUString& m_rCompare;
|
||||
::rtl::OUString m_rCompare;
|
||||
PropertyDescriptionNameMatch( const ::rtl::OUString& _rCompare ) : m_rCompare( _rCompare ) { }
|
||||
|
||||
bool operator() (const PropertyDescription& x ) const
|
||||
{
|
||||
return x.aProperty.Name == m_rCompare;
|
||||
return x.aProperty.Name.equals(m_rCompare);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue