sw/source/core/table/swnewtable.cxx | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-)
New commits: commit 49d1ab032b87634116561b970dcc580be96f33f1 Author: Julien Nabet <serval2...@yahoo.fr> Date: Wed Dec 6 22:26:30 2017 +0100 Use return iterator from erase in swnewtable (sw) Change-Id: I748ebeeef41a102feb63c304d4fae64775a3c8e2 Reviewed-on: https://gerrit.libreoffice.org/45998 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Julien Nabet <serval2...@yahoo.fr> diff --git a/sw/source/core/table/swnewtable.cxx b/sw/source/core/table/swnewtable.cxx index cc0a5fd403d0..03e84964a4ff 100644 --- a/sw/source/core/table/swnewtable.cxx +++ b/sw/source/core/table/swnewtable.cxx @@ -1269,9 +1269,7 @@ static void lcl_SophisticatedFillLineIndices( SwLineOffsetArray &rArr, if( pCurr->first == aLnOfs.first ) { // These boxes can be removed because the last insertion // of rows will expand their row span above the needed value - std::list< SwLineOffset >::iterator pDel = pCurr; - ++pCurr; - aBoxes.erase( pDel ); + pCurr = aBoxes.erase(pCurr); } else { @@ -1286,9 +1284,7 @@ static void lcl_SophisticatedFillLineIndices( SwLineOffsetArray &rArr, if( pCurr->second >= nCnt ) { // if the row span is bigger than the split factor // this box is done - std::list< SwLineOffset >::iterator pDel = pCurr; - ++pCurr; - aBoxes.erase( pDel ); + pCurr = aBoxes.erase(pCurr); } else ++pCurr; @@ -2146,9 +2142,7 @@ void SwTable::CheckConsistency() const "Wrong row span value" ); if( nRowSp == -1 ) { - std::list< RowSpanCheck >::iterator aEraseIter = aIter; - ++aIter; - aRowSpanCells.erase( aEraseIter ); + aIter = aRowSpanCells.erase(aIter); } else ++aIter; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits