diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-11 19:14:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-12 18:01:58 +0200 |
commit | 59b5be40056721218be7304607c4eeaa339b5cba (patch) | |
tree | 4542b8b4d74e94db7be4fccfe6a596be831e021f /comphelper | |
parent | 9f37840b0d7778ab4fc3294c44f62198ea932e3f (diff) |
reserve space in vector
Change-Id: Ibdc882eff13b767076fc26f4c7cd7882bcb7f68d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134222
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/stillreadwriteinteraction.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/comphelper/source/misc/stillreadwriteinteraction.cxx b/comphelper/source/misc/stillreadwriteinteraction.cxx index d9333f389166..7bf48b2d97b2 100644 --- a/comphelper/source/misc/stillreadwriteinteraction.cxx +++ b/comphelper/source/misc/stillreadwriteinteraction.cxx @@ -40,6 +40,7 @@ StillReadWriteInteraction::StillReadWriteInteraction(const css::uno::Reference< , m_xAuxiliaryHandler(xAuxiliaryHandler) { std::vector< ::ucbhelper::InterceptedInteraction::InterceptedRequest > lInterceptions; + lInterceptions.reserve(4); ::ucbhelper::InterceptedInteraction::InterceptedRequest aInterceptedRequest; aInterceptedRequest.Handle = HANDLE_INTERACTIVEIOEXCEPTION; |