summaryrefslogtreecommitdiff
path: root/include/svl
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2024-03-08 15:56:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-03-08 17:56:56 +0100
commit6441778b61d1c6737947551e55d2c27e79260142 (patch)
tree14e96f8f46a5772d3274b548c3c9296c34418a9f /include/svl
parent02f88f45e681beacf611f7c20f7903916b7e7374 (diff)
tdf#158773 reduce size of IndexedStyleSheets
we don't need to store SfxStyleFamily::All in the mStyleSheetsByFamily array, the call sites just iterate over the main vector for that case. Change-Id: I17fca2aa59e786d6dee13c884dedb9fde847b979 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164579 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svl')
-rw-r--r--include/svl/IndexedStyleSheets.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/svl/IndexedStyleSheets.hxx b/include/svl/IndexedStyleSheets.hxx
index 1a76604bd972..1734c7248e04 100644
--- a/include/svl/IndexedStyleSheets.hxx
+++ b/include/svl/IndexedStyleSheets.hxx
@@ -173,7 +173,7 @@ private:
/** A map which stores the positions of style sheets by their name */
MapType mPositionsByName;
- static constexpr size_t NUMBER_OF_FAMILIES = 7;
+ static constexpr size_t NUMBER_OF_FAMILIES = 6;
std::array<std::vector<SfxStyleSheetBase*>, NUMBER_OF_FAMILIES> mStyleSheetsByFamily;
};