From e93cf20603e201be29691b83f02b3282b79851e4 Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Thu, 4 May 2017 22:59:19 +0900 Subject: basic: Compare strings in a case-insensitive manner without creating temporary strings. Change-Id: I8d0e8286089cb78fa9d8612bff6c51f6901637f1 Reviewed-on: https://gerrit.libreoffice.org/37249 Tested-by: Jenkins Reviewed-by: Takeshi Abe --- basic/source/inc/sbunoobj.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'basic/source/inc') diff --git a/basic/source/inc/sbunoobj.hxx b/basic/source/inc/sbunoobj.hxx index 3ee8f0478f1a..a707d72a1d1e 100644 --- a/basic/source/inc/sbunoobj.hxx +++ b/basic/source/inc/sbunoobj.hxx @@ -68,7 +68,7 @@ class SbUnoStructRefObject: public SbxObject { bool operator() (const OUString& rProp, const OUString& rOtherProp ) const { - return rProp.toAsciiUpperCase().compareTo( rOtherProp.toAsciiUpperCase() ) < 0; + return rProp.compareToIgnoreAsciiCase( rOtherProp ) < 0; } }; typedef std::map< OUString, StructRefInfo*, caseLessComp > StructFieldInfo; -- cgit