summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-09-21 15:31:45 +0200
committerMichael Stahl <mstahl@redhat.com>2012-09-21 18:05:02 +0200
commit2422544bb81170f7248046aa0a77efc14033deb9 (patch)
treeea383bdce14bc48a3cfbc5ec5be332ee44ba3269 /sw
parentb844f06b36cf9a6c1411861a08701c8f9be2af0d (diff)
little cleanup in GetTblSel
Change-Id: Idd8639d2f017342ae0227a44b75680179ca376a4
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/frmedt/tblsel.cxx6
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 );