[Libreoffice-commits] core.git: Branch 'libreoffice-4-0' - connectivity/source

Stephan Bergmann sbergman at redhat.com
Fri Aug 30 00:03:35 PDT 2013


 connectivity/source/commontools/ConnectionWrapper.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e127266b1c54586f2df14ee0a1578f823e9c3ca2
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Aug 29 16:05:01 2013 +0200

    TPropertyValueLessFunctor must actually compare for "<"
    
    Change-Id: I584a410d90531a0f7b784e62f94c39e715713cf1
    (cherry picked from commit 2410b3c3ddc6fea02dadd56b39bb1181312c383a)
    Reviewed-on: https://gerrit.libreoffice.org/5686
    Reviewed-by: Fridrich Strba <fridrich at documentfoundation.org>
    Tested-by: Fridrich Strba <fridrich at documentfoundation.org>

diff --git a/connectivity/source/commontools/ConnectionWrapper.cxx b/connectivity/source/commontools/ConnectionWrapper.cxx
index fbf4082..cd6d774 100644
--- a/connectivity/source/commontools/ConnectionWrapper.cxx
+++ b/connectivity/source/commontools/ConnectionWrapper.cxx
@@ -187,7 +187,7 @@ namespace
         {}
         bool operator() (const ::com::sun::star::beans::PropertyValue& lhs, const ::com::sun::star::beans::PropertyValue& rhs) const
         {
-            return !!(lhs.Name.equalsIgnoreAsciiCase( rhs.Name ));
+            return lhs.Name.compareToIgnoreAsciiCase(rhs.Name) < 0;
         }
     };
 


More information about the Libreoffice-commits mailing list