summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-04-12 10:18:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-04-12 12:17:49 +0200
commit08495e24e899c2fd52b9724d993598189e12fc7e (patch)
treef8ce90f090b3fbc6e685f1a026751ffe04c141a9 /sc
parent8f9523b3ef464731afed61a253c958644fca6335 (diff)
OUString::intern is a relic
and a pessimisation. Remove usage thereof. Change-Id: I98f6197aa375349b909a7ef1403ec06ca37890d2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150269 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/xml/xmlexprt.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx
index 9aa4b7b5ad36..a42bf11fdce9 100644
--- a/sc/source/filter/xml/xmlexprt.cxx
+++ b/sc/source/filter/xml/xmlexprt.cxx
@@ -894,7 +894,7 @@ void ScXMLExport::ExportExternalRefCacheStyles()
// Export each unique number format used in the external ref cache.
vector<sal_uInt32> aNumFmts;
pRefMgr->getAllCachedNumberFormats(aNumFmts);
- const OUString aDefaultStyle = OUString("Default").intern();
+ static constexpr OUStringLiteral aDefaultStyle(u"Default");
for (const auto& rNumFmt : aNumFmts)
{
sal_Int32 nNumFmt = static_cast<sal_Int32>(rNumFmt);
@@ -904,7 +904,7 @@ void ScXMLExport::ExportExternalRefCacheStyles()
uno::Any aVal;
aVal <<= nNumFmt;
vector<XMLPropertyState> aProps;
- aVal <<= aDefaultStyle;
+ aVal <<= OUString(aDefaultStyle);
aProps.emplace_back(nEntryIndex, aVal);
OUString aName;