diff options
author | Herbert Dürr <hdu@apache.org> | 2013-10-07 11:18:30 +0000 |
---|---|---|
committer | Herbert Dürr <hdu@apache.org> | 2013-10-07 11:18:30 +0000 |
commit | 67a5b7b958a28290b34dc904ba4eebb72c7a504f (patch) | |
tree | ebda7992fcab670f17b9681e8df49a9cd4dc4295 /connectivity/source | |
parent | 433257ff294f37624c49ddecd2f7d00a22b56fc3 (diff) |
#i123418# fix the TPropertyValueLessFunctor to enable property sorting
Notes
Diffstat (limited to 'connectivity/source')
-rw-r--r-- | connectivity/source/commontools/ConnectionWrapper.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/connectivity/source/commontools/ConnectionWrapper.cxx b/connectivity/source/commontools/ConnectionWrapper.cxx index 06e2b5f522dc..7cd53e55a5ab 100644 --- a/connectivity/source/commontools/ConnectionWrapper.cxx +++ b/connectivity/source/commontools/ConnectionWrapper.cxx @@ -196,7 +196,10 @@ namespace {} 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); } }; |