filter/source/config/cache/filtercache.cxx | 1 + 1 file changed, 1 insertion(+)
New commits: commit ad5a41da383f34dc4894a21c8468cc3a8519d9b1 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Thu May 19 16:32:05 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Thu May 19 22:18:44 2022 +0200 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.gran...@collabora.co.uk> 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"!