diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-04-12 10:18:33 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-04-12 12:17:49 +0200 |
commit | 08495e24e899c2fd52b9724d993598189e12fc7e (patch) | |
tree | f8ce90f090b3fbc6e685f1a026751ffe04c141a9 /sc/source | |
parent | 8f9523b3ef464731afed61a253c958644fca6335 (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/source')
-rw-r--r-- | sc/source/filter/xml/xmlexprt.cxx | 4 |
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; |