summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-05-11 13:59:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-05-12 11:38:42 +0200
commit301b5c0aea7a525c436b0f2f54a8cef8be947c89 (patch)
tree0ff9a6aa2fe16826e94ad8ba5b5f19cae375bd8b /xmloff
parent2c4330b3570f16d6668936fd05e1ab2ade597bae (diff)
tdf#121740 avoid some temporary OUString construction
Change-Id: Id70349e0e8f7d79bad693663ec3dc2963e0834b7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134205 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/xmlexp.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx
index 0e0c22d8ca07..22b55d7565f5 100644
--- a/xmloff/source/core/xmlexp.cxx
+++ b/xmloff/source/core/xmlexp.cxx
@@ -538,9 +538,9 @@ SvXMLExport::~SvXMLExport()
{
if (mpProgressBarHelper)
{
- OUString sProgressMax(XML_PROGRESSMAX);
- OUString sProgressCurrent(XML_PROGRESSCURRENT);
- OUString sRepeat(XML_PROGRESSREPEAT);
+ static constexpr OUStringLiteral sProgressMax(XML_PROGRESSMAX);
+ static constexpr OUStringLiteral sProgressCurrent(XML_PROGRESSCURRENT);
+ static constexpr OUStringLiteral sRepeat(XML_PROGRESSREPEAT);
if (xPropertySetInfo->hasPropertyByName(sProgressMax) &&
xPropertySetInfo->hasPropertyByName(sProgressCurrent))
{
@@ -554,7 +554,7 @@ SvXMLExport::~SvXMLExport()
}
if (mpNumExport && (mnExportFlags & (SvXMLExportFlags::AUTOSTYLES | SvXMLExportFlags::STYLES)))
{
- OUString sWrittenNumberFormats(XML_WRITTENNUMBERSTYLES);
+ static constexpr OUStringLiteral sWrittenNumberFormats(XML_WRITTENNUMBERSTYLES);
if (xPropertySetInfo->hasPropertyByName(sWrittenNumberFormats))
{
mxExportInfo->setPropertyValue(sWrittenNumberFormats, Any(mpNumExport->GetWasUsed()));