From 8ee0b01f226665c877d5ed59b23eec278800a667 Mon Sep 17 00:00:00 2001 From: Christian Lohmaier Date: Mon, 17 Jun 2024 16:33:11 +0200 Subject: [PATCH] workaround clang-14 bug affects both macOS XCode 14 as well as the em++ / emsdk clang 14 used by the wasm builder Change-Id: Id3e9a923b7f18ca8d18fd4bc2fd5de83ab3c591f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169031 Reviewed-by: Christian Lohmaier Tested-by: Jenkins --- sw/source/filter/ww8/docxattributeoutput.cxx | 22 ++++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index 35c7705bdd71..e3ff688d0115 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -6695,18 +6695,18 @@ static bool lcl_guessQFormat(const OUString& rName, sal_uInt16 nWwId) nWwId == ww::stiEmphasis ) return true; - static o3tl::sorted_vector const aAllowlist + static o3tl::sorted_vector const aAllowlist { - u"No Spacing"_ustr, - u"List Paragraph"_ustr, - u"Quote"_ustr, - u"Intense Quote"_ustr, - u"Subtle Emphasis"_ustr, - u"Intense Emphasis"_ustr, - u"Subtle Reference"_ustr, - u"Intense Reference"_ustr, - u"Book Title"_ustr, - u"TOC Heading"_ustr, + u"No Spacing", + u"List Paragraph", + u"Quote", + u"Intense Quote", + u"Subtle Emphasis", + u"Intense Emphasis", + u"Subtle Reference", + u"Intense Reference", + u"Book Title", + u"TOC Heading", }; // Not custom style? Then we have a list of standard styles which should be qFormat. return aAllowlist.find(rName) != aAllowlist.end();