From 81202ae7487b139cb473ff85634003b36d67e8c4 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 22 Sep 2013 16:58:29 +0100 Subject: Related: fdo#38838 remove UniString::CompareIgnoreCaseToAscii Change-Id: I4a9b34d63d2534a35aa9a878b8c2bec15262c2be --- sc/source/filter/excel/xistyle.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sc/source/filter/excel') diff --git a/sc/source/filter/excel/xistyle.cxx b/sc/source/filter/excel/xistyle.cxx index a22ef9b08dfb..c1d9d361fb34 100644 --- a/sc/source/filter/excel/xistyle.cxx +++ b/sc/source/filter/excel/xistyle.cxx @@ -1542,8 +1542,8 @@ namespace { /** Functor for case-insensitive string comparison, usable in maps etc. */ struct IgnoreCaseCompare { - inline bool operator()( const String& rName1, const String& rName2 ) const - { return rName1.CompareIgnoreCaseToAscii( rName2 ) == COMPARE_LESS; } + inline bool operator()( const OUString& rName1, const OUString& rName2 ) const + { return rName1.compareToIgnoreAsciiCase( rName2 ) < 0; } }; } // namespace @@ -1551,7 +1551,7 @@ struct IgnoreCaseCompare void XclImpXFBuffer::CreateUserStyles() { // calculate final names of all styles - typedef ::std::map< String, XclImpStyle*, IgnoreCaseCompare > CellStyleNameMap; + typedef ::std::map< OUString, XclImpStyle*, IgnoreCaseCompare > CellStyleNameMap; typedef ::std::vector< XclImpStyle* > XclImpStyleVector; CellStyleNameMap aCellStyles; -- cgit