| commit | 34017b14d866e99aff466ff200b60b3e2d509a30 | [log] |
|---|---|---|
| author | Noel Grandin <noel.grandin@collabora.co.uk> | Thu Mar 07 12:48:00 2024 +0200 |
| committer | Noel Grandin <noel.grandin@collabora.co.uk> | Thu Mar 07 16:50:00 2024 +0100 |
| tree | d827d2fecf64f614a87ec6b9f18d03983384b450 | |
| parent | 06d444e9a102569aa6cf429079036fc95482cc7f [diff] |
tdf#158773 reduce time spent in IndexedStyleSheets::Reindex no need to de-allocate and then re-allocate the vectors inside mStyleSheetPositionsByFamily Change-Id: I3ad10173d9f3ba252619667afe13250045c943c5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164529 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
diff --git a/svl/source/items/IndexedStyleSheets.cxx b/svl/source/items/IndexedStyleSheets.cxx index 57e2ddd..c4b879d 100644 --- a/svl/source/items/IndexedStyleSheets.cxx +++ b/svl/source/items/IndexedStyleSheets.cxx
@@ -64,9 +64,9 @@ void IndexedStyleSheets::Reindex() { mPositionsByName.clear(); mStyleSheetPositionsByFamily.clear(); mStyleSheetPositionsByFamily.resize(NUMBER_OF_FAMILIES); for (size_t i = 0; i < NUMBER_OF_FAMILIES; i++) { mStyleSheetPositionsByFamily.emplace_back(); mStyleSheetPositionsByFamily[i].clear(); } sal_Int32 i = 0;