xmloff/source/core/xmlexp.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 094b003268423a62cce9619a78caa82c59c7bbb8 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Fri May 13 11:10:12 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sat May 14 13:46:35 2022 +0200 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.gran...@collabora.co.uk> 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;