mirror of
https://github.com/LibreOffice/core.git
synced 2025-08-18 08:16:42 +00:00
writerfilter : use constexpr frozen unordered_set instead of std::unordered_set
Change-Id: I37b4b5ec56f846b5c46faeaa5aebb88340ac3c6b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161385 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:

committed by
Noel Grandin

parent
c4fb690e6f
commit
f504b2de4a
@ -20,7 +20,6 @@
|
||||
#include <sal/config.h>
|
||||
|
||||
#include <string_view>
|
||||
#include <unordered_set>
|
||||
|
||||
#include "PropertyMap.hxx"
|
||||
#include "TagLogger.hxx"
|
||||
@ -67,6 +66,10 @@
|
||||
#include <o3tl/unit_conversion.hxx>
|
||||
#include <utility>
|
||||
|
||||
#include <frozen/bits/defines.h>
|
||||
#include <frozen/bits/elsa_std.h>
|
||||
#include <frozen/unordered_set.h>
|
||||
|
||||
using namespace com::sun::star;
|
||||
|
||||
namespace writerfilter::dmapper {
|
||||
@ -1399,12 +1402,12 @@ void SectionPropertyMap::CreateEvenOddPageStyleCopy(DomainMapper_Impl& rDM_Impl,
|
||||
const uno::Sequence<beans::Property> propertyList(pagePropertiesInfo->getProperties());
|
||||
|
||||
// Ignore write-only properties.
|
||||
static const std::unordered_set<OUString> staticDenylist = {
|
||||
"FooterBackGraphicURL", "BackGraphicURL", "HeaderBackGraphicURL",
|
||||
"HeaderIsOn", "FooterIsOn",
|
||||
"HeaderIsShared", "FooterIsShared", "FirstIsShared",
|
||||
"HeaderText", "HeaderTextLeft", "HeaderTextFirst",
|
||||
"FooterText", "FooterTextLeft", "FooterTextFirst" };
|
||||
static constexpr frozen::unordered_set<std::u16string_view, 14> staticDenylist = {
|
||||
u"FooterBackGraphicURL", u"BackGraphicURL", u"HeaderBackGraphicURL",
|
||||
u"HeaderIsOn", u"FooterIsOn",
|
||||
u"HeaderIsShared", u"FooterIsShared", u"FirstIsShared",
|
||||
u"HeaderText", u"HeaderTextLeft", u"HeaderTextFirst",
|
||||
u"FooterText", u"FooterTextLeft", u"FooterTextFirst" };
|
||||
|
||||
for (const auto& rProperty : propertyList)
|
||||
{
|
||||
|
Reference in New Issue
Block a user