Commits

oj  committed af01cca

revert change

  • Participants
  • Parent commits 8d3b716

Comments (0)

Files changed (2)

File comphelper/source/property/propertybag.cxx

             // will throw an UnknownPropertyException if necessary
         if ( ( rProp.Attributes & PropertyAttribute::REMOVEABLE ) == 0 )
             throw NotRemoveableException( ::rtl::OUString(), NULL );
-        const sal_Int32 nHandle = rProp.Handle;
 
-        revokeProperty( nHandle );
+        revokeProperty( rProp.Handle );
 
-        m_pImpl->aDefaults.erase( nHandle );
+        m_pImpl->aDefaults.erase( rProp.Handle );
     }
 
 	//--------------------------------------------------------------------

File comphelper/source/property/propertycontainerhelper.cxx

 	// comparing two property descriptions (by name)
     struct PropertyDescriptionNameMatch : public ::std::unary_function< PropertyDescription, bool >
 	{
-        ::rtl::OUString m_rCompare;
+        const ::rtl::OUString& m_rCompare;
         PropertyDescriptionNameMatch( const ::rtl::OUString& _rCompare ) : m_rCompare( _rCompare ) { }
 
         bool operator() (const PropertyDescription& x ) const
 		{
-			return x.aProperty.Name.equals(m_rCompare);
+			return x.aProperty.Name == m_rCompare;
 		}
 	};
 }