From 1f9468fc29874eae5100317282ab8b395904406d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 14 Oct 2021 14:57:54 +0200 Subject: use std::vector::insert instead of push_back because it will pre-allocate space and often is optimised to memcpy Change-Id: I03ed7915f2762d3d27e378638052a47a28bbf096 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123588 Tested-by: Jenkins Reviewed-by: Noel Grandin --- ucb/source/ucp/file/filtask.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ucb') diff --git a/ucb/source/ucp/file/filtask.cxx b/ucb/source/ucp/file/filtask.cxx index 6c900d33f6a8..6f465dab57ba 100644 --- a/ucb/source/ucp/file/filtask.cxx +++ b/ucb/source/ucp/file/filtask.cxx @@ -2722,8 +2722,8 @@ TaskManager::getContentExchangedEventListeners( const OUString& aOldPrefix, // Merge with preexisting notifiers // However, these may be in status BaseContent::Deleted - for( const auto& rCopyPtr : copyList ) - itnew->second.notifier.push_back( rCopyPtr ); + itnew->second.notifier.insert(itnew->second.notifier.end(), + copyList.begin(), copyList.end() ); } } } -- cgit