sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit f0575619d1c30131b7959ee8fc35eb57e5cf12b2 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Wed Aug 21 08:08:22 2024 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Wed Aug 21 14:54:41 2024 +0200 these can be static Change-Id: Ia4ecf6dfb6703e2e601c1c70ab08ce574374da4f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172168 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx b/sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx index 268a1d72d819..a81c1b8fcdcc 100644 --- a/sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx +++ b/sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx @@ -3469,7 +3469,7 @@ void DomainMapper_Impl::appendOLE( const OUString& rStreamName, const std::share xOLE->setPropertyValue(u"LeftBorder"_ustr, uno::Any(aBorderProps)); xOLE->setPropertyValue(u"BottomBorder"_ustr, uno::Any(aBorderProps)); } - OUString pProperties[] = { + constexpr OUString pProperties[] = { u"AnchorType"_ustr, u"Surround"_ustr, u"SurroundContour"_ustr, @@ -6336,7 +6336,7 @@ typedef std::multimap < sal_Int32, OUString > TOCStyleMap; static ww::eField GetWW8FieldId(OUString const& rType) { - std::unordered_map<OUString, ww::eField> mapID + static const std::unordered_map<OUString, ww::eField> mapID { {"ADDRESSBLOCK", ww::eADDRESSBLOCK}, {"ADVANCE", ww::eADVANCE},