summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-05-19 16:32:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-05-19 22:18:44 +0200
commitad5a41da383f34dc4894a21c8468cc3a8519d9b1 (patch)
treec13c80ba8a4ee7c253f19a1f7b97bb7cac667b87 /filter
parent61c47d50284e2ac45bfb1641b7f79a350bfaad5a (diff)
reserve vector in FilterCache::getMatchingItemsByProps
Change-Id: Ic996b2d2e72c4aebc889d8c2a921b77c7c492276 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134644 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/config/cache/filtercache.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/filter/source/config/cache/filtercache.cxx b/filter/source/config/cache/filtercache.cxx
index 3fcff8d22478..ec995700a366 100644
--- a/filter/source/config/cache/filtercache.cxx
+++ b/filter/source/config/cache/filtercache.cxx
@@ -257,6 +257,7 @@ std::vector<OUString> FilterCache::getMatchingItemsByProps( EItemType eTyp
const CacheItemList& rList = impl_getItemList(eType);
std::vector<OUString> lKeys;
+ lKeys.reserve(rList.size());
// search items, which provides all needed properties of set "lIProps"
// but not of set "lEProps"!