diff options
author | Stefan Dorneanu <stefcris2014@yahoo.com> | 2025-05-16 21:48:02 +0300 |
---|---|---|
committer | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2025-05-31 07:53:03 +0200 |
commit | 6eaf9092546abe3e225ebf847e7a7fd40aa05cd7 (patch) | |
tree | 65aa2190dd8858f8dcb6b7f4f2ca951ce54c039c /basic/source/classes | |
parent | 0151a5a2e9114375cd3256e3cca495b2347ebefb (diff) |
tdf#163738 Used insert() to add multiple values in containers instead of a loop
Signed-off-by: Stefan Dorneanu <cdmail2012.cd@gmail.com>
Change-Id: I8175b11dab5204931aaf53c13d4ac8a2e5a2e911
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185431
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'basic/source/classes')
-rw-r--r-- | basic/source/classes/propacc.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/basic/source/classes/propacc.cxx b/basic/source/classes/propacc.cxx index 3f72c50f0683..bfee62092e31 100644 --- a/basic/source/classes/propacc.cxx +++ b/basic/source/classes/propacc.cxx @@ -131,10 +131,7 @@ void SbPropertyValues::setPropertyValues(const Sequence< PropertyValue >& rPrope if (!m_aPropVals.empty()) throw IllegalArgumentException(u"m_aPropVals not empty"_ustr, getXWeak(), -1); - for (const PropertyValue& i : rPropertyValues) - { - m_aPropVals.push_back(i); - } + m_aPropVals.insert(m_aPropVals.end(), rPropertyValues.begin(), rPropertyValues.end()); } |