diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-13 11:10:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-14 13:46:35 +0200 |
commit | 094b003268423a62cce9619a78caa82c59c7bbb8 (patch) | |
tree | b6c2e9c69ac9bacba8e6e76bf69fb7aa56166cb1 /xmloff | |
parent | 93243decefd78cd956d3d0984b4cd829d13bed4c (diff) |
elide some OUString construction in GetViewSettingsAndViews
Change-Id: I4d0e6444e939731e9b109f961d36d9a2b8f00d9d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134305
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/core/xmlexp.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx index f8e72d6fb3f3..5235226ac81f 100644 --- a/xmloff/source/core/xmlexp.cxx +++ b/xmloff/source/core/xmlexp.cxx @@ -1725,7 +1725,8 @@ void SvXMLExport::GetViewSettingsAndViews(uno::Sequence<beans::PropertyValue>& r xViewDataSupplier->setViewData( xIndexAccess ); // make sure we get a newly created sequence { // tdf#130559: don't export preview view data if active - css::uno::ContextLayer layer(comphelper::NewFlagContext("NoPreviewData")); + static constexpr OUStringLiteral sNoPreviewData = u"NoPreviewData"; + css::uno::ContextLayer layer(comphelper::NewFlagContext(sNoPreviewData)); xIndexAccess = xViewDataSupplier->getViewData(); } bool bAdd = false; |