summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-28 16:44:40 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-28 22:14:33 +0100
commit2049746aa5ab3a9e48f0cf45c6257cee6ef0186c (patch)
tree13e09e645052cf20357d827ba0521694131c86a9
parentd28108fe2b85d1964d28846116dbdf6cfba24e94 (diff)
use ranged for
Change-Id: I7bf23c4fd2235125c3f9cbfd32027b98ff91ac3e
-rw-r--r--sw/source/core/unocore/unotbl.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index 8d72ef533a0f..e002942ed747 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -1505,11 +1505,8 @@ SwXTextTableCursor::SwXTextTableCursor(SwFrmFmt& rTableFmt, const SwTableCursor*
}
const SwSelBoxes& rBoxes = pTableSelection->GetSelectedBoxes();
SwTableCursor& rTableCrsr = dynamic_cast<SwTableCursor&>(*pUnoCrsr);
- for (size_t i = 0; i < rBoxes.size(); i++)
- {
- rTableCrsr.InsertBox( *rBoxes[i] );
- }
-
+ for(auto pBox : rBoxes)
+ rTableCrsr.InsertBox(*pBox);
pUnoCrsr->Add(&aCrsrDepend);
SwUnoTableCrsr& rTblCrsr = dynamic_cast<SwUnoTableCrsr&>(*pUnoCrsr);
rTblCrsr.MakeBoxSels();