diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-02-24 13:24:04 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-02-24 19:31:38 +0100 |
commit | 2baf13e903164e92af6c87346e368043bbd09b28 (patch) | |
tree | 5ce84dc9f5d64a46495bd7ca5f404285bb4683b9 /editeng/source | |
parent | 089ce740f9f97f9c7b13e37a31acfc94984e9a3e (diff) |
use more TypedWhichId
Change-Id: I6ab3ca829bc08e672736dd8dd41ba714d7172090
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130498
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng/source')
-rw-r--r-- | editeng/source/rtf/svxrtf.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/editeng/source/rtf/svxrtf.cxx b/editeng/source/rtf/svxrtf.cxx index 0822b3522817..f60c14cdbafa 100644 --- a/editeng/source/rtf/svxrtf.cxx +++ b/editeng/source/rtf/svxrtf.cxx @@ -899,7 +899,7 @@ void SvxRTFParser::BuildWhichTable() // Here are the IDs for all paragraph attributes, which can be detected by // SvxParser and can be set in a SfxItemSet. The IDs are set correctly through // the SlotIds from POOL. - for (sal_uInt16 nWid : { + static constexpr sal_uInt16 WIDS1[] { SID_ATTR_PARA_LINESPACE, SID_ATTR_PARA_ADJUST, SID_ATTR_TABSTOP, @@ -917,7 +917,8 @@ void SvxRTFParser::BuildWhichTable() SID_ATTR_PARA_HANGPUNCTUATION, SID_ATTR_PARA_FORBIDDEN_RULES, SID_ATTR_FRAMEDIRECTION, - }) + }; + for (sal_uInt16 nWid : WIDS1) { sal_uInt16 nTrueWid = pAttrPool->GetTrueWhich(nWid, false); aPardMap[nWid] = nTrueWid; @@ -929,7 +930,7 @@ void SvxRTFParser::BuildWhichTable() // Here are the IDs for all character attributes, which can be detected by // SvxParser and can be set in a SfxItemSet. The IDs are set correctly through // the SlotIds from POOL. - constexpr sal_uInt16 WIDS[] { + static constexpr sal_uInt16 WIDS[] { SID_ATTR_CHAR_CASEMAP, SID_ATTR_BRUSH_CHAR, SID_ATTR_CHAR_COLOR, SID_ATTR_CHAR_CONTOUR, SID_ATTR_CHAR_STRIKEOUT, SID_ATTR_CHAR_ESCAPEMENT, SID_ATTR_CHAR_FONT, SID_ATTR_CHAR_FONTHEIGHT, SID_ATTR_CHAR_KERNING, |