summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-06-23 15:02:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-06-24 08:43:55 +0200
commita2fc883173d7053cefe543620982051ae40c4b03 (patch)
treedac1b760925c8151dfd8a9cbe3a8735b68ab9f79 /toolkit
parent010713e65ccade7b682c219707c8db3d864145c1 (diff)
use more std::container::insert instead of std::copy
which is both more compact code, and more efficient, since the insert method can do smarter resizing Change-Id: I17f226660f87cdf002edccc29b4af8fd59a25f91 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96948 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/helper/formpdfexport.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/toolkit/source/helper/formpdfexport.cxx b/toolkit/source/helper/formpdfexport.cxx
index dc1f02f12e77..a3c74dd1b39e 100644
--- a/toolkit/source/helper/formpdfexport.cxx
+++ b/toolkit/source/helper/formpdfexport.cxx
@@ -270,8 +270,7 @@ namespace toolkitform
if( ! (_rxModel->getPropertyValue( "StringItemList" ) >>= aListEntries) ) {
SAL_WARN("toolkit.helper", "getStringItemVector: unable to get property StringItemList");
}
- ::std::copy( aListEntries.begin(), aListEntries.end(),
- ::std::back_insert_iterator< ::std::vector< OUString > >( _rVector ) );
+ _rVector.insert( _rVector.end(), aListEntries.begin(), aListEntries.end() );
}
}