summaryrefslogtreecommitdiff
path: root/xmloff/source/style/xmlnumfe.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-05-15 13:12:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-05-15 20:37:38 +0200
commit12008e10549aa3fe23063eb1af38fb3e86064d3e (patch)
treeb07bad8a2cc8f83bb69d3c5fe983d1b163f0ffc4 /xmloff/source/style/xmlnumfe.cxx
parentffd199021ec24e3fb2028708a6a191bf5dd49e41 (diff)
loplugin:ostr in xmloff
Change-Id: I24f5626e57e03217e4bcf77289c785e255b9f904 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167667 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
Diffstat (limited to 'xmloff/source/style/xmlnumfe.cxx')
-rw-r--r--xmloff/source/style/xmlnumfe.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmloff/source/style/xmlnumfe.cxx b/xmloff/source/style/xmlnumfe.cxx
index ada2cd494665..f09d1e94942b 100644
--- a/xmloff/source/style/xmlnumfe.cxx
+++ b/xmloff/source/style/xmlnumfe.cxx
@@ -212,7 +212,7 @@ SvXMLNumFmtExport::SvXMLNumFmtExport(
SvXMLExport& rExp,
const uno::Reference< util::XNumberFormatsSupplier >& rSupp ) :
m_rExport( rExp ),
- m_sPrefix( OUString("N") ),
+ m_sPrefix( u"N"_ustr ),
m_pFormatter( nullptr ),
m_bHasText( false )
{
@@ -974,7 +974,7 @@ bool SvXMLNumFmtExport::WriteTextWithCurrency_Impl( const OUString& rString,
AddToTextElement_Impl( rString.subView( 0, nPos ) );
}
// currency symbol (empty string -> default)
- WriteCurrencyElement_Impl( "", u"" );
+ WriteCurrencyElement_Impl( u""_ustr, u"" );
bRet = true;
// text after currency symbol
@@ -1814,7 +1814,7 @@ void SvXMLNumFmtExport::ExportPart_Impl( const SvNumberformat& rFormat, sal_uInt
nElemType == NF_KEY_R );
WriteYearElement_Impl(
((bImplicitOtherCalendar && !bExplicitCalendar
- && (nElemType == NF_KEY_YY || nElemType == NF_KEY_YYYY)) ? "gregorian" : aCalendar),
+ && (nElemType == NF_KEY_YY || nElemType == NF_KEY_YYYY)) ? u"gregorian"_ustr : aCalendar),
(bSystemDate ? bLongSysDate : bLong));
bAnyContent = true;
}