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 <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
This commit is contained in:
Christian Lohmaier 2024-06-17 16:33:11 +02:00
parent bba1193359
commit 8ee0b01f22

View file

@ -6695,18 +6695,18 @@ static bool lcl_guessQFormat(const OUString& rName, sal_uInt16 nWwId)
nWwId == ww::stiEmphasis )
return true;
static o3tl::sorted_vector<OUString, OUStringIgnoreCase> const aAllowlist
static o3tl::sorted_vector<std::u16string_view, OUStringIgnoreCase> 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();