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:
parent
7292bc192c
commit
1eb5e36521
1 changed files with 1 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue