diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-09-21 15:31:45 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-09-21 18:05:02 +0200 |
commit | 2422544bb81170f7248046aa0a77efc14033deb9 (patch) | |
tree | ea383bdce14bc48a3cfbc5ec5be332ee44ba3269 /sw | |
parent | b844f06b36cf9a6c1411861a08701c8f9be2af0d (diff) |
little cleanup in GetTblSel
Change-Id: Idd8639d2f017342ae0227a44b75680179ca376a4
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/frmedt/tblsel.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/core/frmedt/tblsel.cxx b/sw/source/core/frmedt/tblsel.cxx index 4826701c6d80..f639f83e5c76 100644 --- a/sw/source/core/frmedt/tblsel.cxx +++ b/sw/source/core/frmedt/tblsel.cxx @@ -287,10 +287,9 @@ void GetTblSel( const SwLayoutFrm* pStart, const SwLayoutFrm* pEnd, const SwCellFrm* pCurrentTopRightFrm = 0; const SwCellFrm* pCurrentBottomLeftFrm = 0; const SwCellFrm* pCurrentBottomRightFrm = 0; - size_t i = 0; // Now find boxes for each entry and emit - for ( ; i < aUnions.size() && bTblIsValid; ++i) + for (size_t i = 0; i < aUnions.size() && bTblIsValid; ++i) { SwSelUnion *pUnion = &aUnions[i]; const SwTabFrm *pTable = pUnion->GetTable(); @@ -425,8 +424,7 @@ void GetTblSel( const SwLayoutFrm* pStart, const SwLayoutFrm* pEnd, break; } - i = 0; - rBoxes.erase( rBoxes.begin() + i, rBoxes.end() ); + rBoxes.clear(); --nLoopMax; } while( sal_True ); |