summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/xmlexp.cxx3
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;