From 912b8fa62f897fb6fdfd760108d87c4dd468b8ee Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 23 May 2022 13:30:58 +0200 Subject: modernize and improve PropertySetInfo (*) use o3tl::span for the array param, which means we don't need a null entry to terminate the array (*) use std::unordered_map to speed things up (*) mark the array as static at a few more call sites Change-Id: I05b6cae7552f44459e183ec05cb94e60edb3bfe0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134832 Tested-by: Jenkins Reviewed-by: Noel Grandin --- writerperfect/source/writer/EPUBExportFilter.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'writerperfect') diff --git a/writerperfect/source/writer/EPUBExportFilter.cxx b/writerperfect/source/writer/EPUBExportFilter.cxx index cdd7d1d2cb82..8ac55af19f59 100644 --- a/writerperfect/source/writer/EPUBExportFilter.cxx +++ b/writerperfect/source/writer/EPUBExportFilter.cxx @@ -105,10 +105,9 @@ sal_Bool EPUBExportFilter::filter(const uno::Sequence& rDe uno::UNO_QUERY); // A subset of parameters are passed in as a property set. - comphelper::PropertyMapEntry const aInfoMap[] + static comphelper::PropertyMapEntry const aInfoMap[] = { { OUString("BaseURI"), 0, cppu::UnoType::get(), - beans::PropertyAttribute::MAYBEVOID, 0 }, - { OUString(), 0, uno::Type(), 0, 0 } }; + beans::PropertyAttribute::MAYBEVOID, 0 } }; uno::Reference xInfoSet( comphelper::GenericPropertySet_CreateInstance(new comphelper::PropertySetInfo(aInfoMap))); xInfoSet->setPropertyValue("BaseURI", uno::Any(aSourceURL)); -- cgit