comphelper/source/misc/stillreadwriteinteraction.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 59b5be40056721218be7304607c4eeaa339b5cba
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Wed May 11 19:14:31 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Thu May 12 18:01:58 2022 +0200

    reserve space in vector
    
    Change-Id: Ibdc882eff13b767076fc26f4c7cd7882bcb7f68d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134222
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

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;

Reply via email to