Kaydet (Commit) 67a5b7b9 authored tarafından Herbert Dürr's avatar Herbert Dürr

#i123418# fix the TPropertyValueLessFunctor to enable property sorting

üst 433257ff
...@@ -196,7 +196,10 @@ namespace ...@@ -196,7 +196,10 @@ namespace
{} {}
bool operator() (const ::com::sun::star::beans::PropertyValue& lhs, const ::com::sun::star::beans::PropertyValue& rhs) const bool operator() (const ::com::sun::star::beans::PropertyValue& lhs, const ::com::sun::star::beans::PropertyValue& rhs) const
{ {
return !!(lhs.Name.equalsIgnoreAsciiCase( rhs.Name )); const rtl_uString* l = lhs.Name.pData;
const rtl_uString* r = rhs.Name.pData;
const int c = rtl_ustr_compareIgnoreAsciiCase_WithLength( l->buffer, l->length, r->buffer, r->length );
return (c < 0);
} }
}; };
......
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