From 094b003268423a62cce9619a78caa82c59c7bbb8 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 13 May 2022 11:10:12 +0200 Subject: 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 --- xmloff/source/core/xmlexp.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xmloff') 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& 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; -- cgit