diff options
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/draw/ximpcustomshape.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/style/xmlnumfi.cxx | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/xmloff/source/draw/ximpcustomshape.cxx b/xmloff/source/draw/ximpcustomshape.cxx index cf794da63df6..c8dbf70ba143 100644 --- a/xmloff/source/draw/ximpcustomshape.cxx +++ b/xmloff/source/draw/ximpcustomshape.cxx @@ -935,7 +935,7 @@ void XMLEnhancedCustomShapeContext::startFastElement( rDepth.Value <<= fDepth; } } - if ( rValue.matchIgnoreAsciiCase( aUnitStr.toString(), nIndex ) ) + if ( rValue.matchIgnoreAsciiCase( aUnitStr, nIndex ) ) nIndex += aUnitStr.getLength(); // skipping white spaces diff --git a/xmloff/source/style/xmlnumfi.cxx b/xmloff/source/style/xmlnumfi.cxx index 87f653873904..e4083d3517ba 100644 --- a/xmloff/source/style/xmlnumfi.cxx +++ b/xmloff/source/style/xmlnumfi.cxx @@ -546,8 +546,7 @@ static void lcl_EnquoteIfNecessary( OUStringBuffer& rContent, const SvXMLNumForm // the percent character in percentage styles must be left out of quoting // (one occurrence is enough even if there are several percent characters in the string) - OUString aString( rContent.toString() ); - sal_Int32 nPos = aString.indexOf( '%' ); + sal_Int32 nPos = rContent.indexOf( '%' ); if ( nPos >= 0 ) { if ( nPos + 1 < nLength ) @@ -861,7 +860,7 @@ void SvXMLNumFmtElementContext::endFastElement(sal_Int32 ) { case SvXMLStyleTokens::Text: if ( rParent.HasLongDoW() && - aContent.toString() == rParent.GetLocaleData().getLongDateDayOfWeekSep() ) + std::u16string_view(aContent) == rParent.GetLocaleData().getLongDateDayOfWeekSep() ) { // skip separator constant after long day of week // (NF_KEY_NNNN contains the separator) |