diff options
author | Noel Grandin <noel@peralex.com> | 2012-06-18 18:04:44 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-06-20 19:46:40 +0200 |
commit | d69fdd1ed634be8426f9ff80f9411187da29f00a (patch) | |
tree | 2d16935eccaab7779929f9d4d1b12a07a888733b /sw/source/core/doc/docchart.cxx | |
parent | 05d46a4a5afc447ece8e4297b1a9b8e9e9b99b90 (diff) |
Convert SV_DECL_PTRARR_DEL(SwTableLines) to std::vector
Along the way, simplify a lot of the ForEach callback methods.
Change-Id: I54bc87c1060f1d73470ca8b7fd645ffa23059606
Diffstat (limited to 'sw/source/core/doc/docchart.cxx')
-rw-r--r-- | sw/source/core/doc/docchart.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/doc/docchart.cxx b/sw/source/core/doc/docchart.cxx index f48fab46734d..ae2307935674 100644 --- a/sw/source/core/doc/docchart.cxx +++ b/sw/source/core/doc/docchart.cxx @@ -84,15 +84,15 @@ sal_Bool SwTable::IsTblComplexForChart( const String& rSelection ) const pSttBox = (*pLns)[ 0 ]->GetTabBoxes().front(); while( !pSttBox->GetSttNd() ) // Until the Content Box! - pSttBox = pSttBox->GetTabLines()[ 0 ]->GetTabBoxes().front(); + pSttBox = pSttBox->GetTabLines().front()->GetTabBoxes().front(); - const SwTableBoxes* pBoxes = &(*pLns)[ pLns->Count()-1 ]->GetTabBoxes(); + const SwTableBoxes* pBoxes = &pLns->back()->GetTabBoxes(); pEndBox = pBoxes->back(); while( !pEndBox->GetSttNd() ) { // Until the Content Box! pLns = &pEndBox->GetTabLines(); - pBoxes = &(*pLns)[ pLns->Count()-1 ]->GetTabBoxes(); + pBoxes = &pLns->back()->GetTabBoxes(); pEndBox = pBoxes->back(); } } |