You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by hd...@apache.org on 2013/10/07 13:18:31 UTC

svn commit: r1529818 - /openoffice/trunk/main/connectivity/source/commontools/ConnectionWrapper.cxx

Author: hdu
Date: Mon Oct  7 11:18:30 2013
New Revision: 1529818

URL: http://svn.apache.org/r1529818
Log:
#i123418# fix the TPropertyValueLessFunctor to enable property sorting

Modified:
    openoffice/trunk/main/connectivity/source/commontools/ConnectionWrapper.cxx

Modified: openoffice/trunk/main/connectivity/source/commontools/ConnectionWrapper.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/connectivity/source/commontools/ConnectionWrapper.cxx?rev=1529818&r1=1529817&r2=1529818&view=diff
==============================================================================
--- openoffice/trunk/main/connectivity/source/commontools/ConnectionWrapper.cxx (original)
+++ openoffice/trunk/main/connectivity/source/commontools/ConnectionWrapper.cxx Mon Oct  7 11:18:30 2013
@@ -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);
 		}
 	};