tdf#163738 use insert function instead of for loop

Change-Id: I57c1ec3e580f4df22852dfaf7c75019e12fe352c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177898
Tested-by: Jenkins
Reviewed-by: Hossein   <hossein@libreoffice.org>
This commit is contained in:
Simon Chenery 2024-12-05 19:00:21 +01:00 committed by Hossein
parent 7292bc192c
commit 1eb5e36521

View file

@ -31,8 +31,7 @@ BreakPointList::BreakPointList()
BreakPointList::BreakPointList(BreakPointList const & rList)
{
for (size_t i = 0; i < rList.size(); ++i)
maBreakPoints.push_back( rList.at( i ) );
maBreakPoints.insert(maBreakPoints.end(), rList.maBreakPoints.begin(), rList.maBreakPoints.end());
}
BreakPointList::~BreakPointList()