summaryrefslogtreecommitdiff
path: root/basic/source/inc
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2017-05-04 22:59:19 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2017-05-10 05:54:25 +0200
commite93cf20603e201be29691b83f02b3282b79851e4 (patch)
tree21af105630203125306abf5b49f4022444d24cdc /basic/source/inc
parente5a4858e1adf5e9f0c5eb808d2155fded6a46728 (diff)
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 <ci@libreoffice.org> Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'basic/source/inc')
-rw-r--r--basic/source/inc/sbunoobj.hxx2
1 files changed, 1 insertions, 1 deletions
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;