From d69fdd1ed634be8426f9ff80f9411187da29f00a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 18 Jun 2012 18:04:44 +0200 Subject: Convert SV_DECL_PTRARR_DEL(SwTableLines) to std::vector Along the way, simplify a lot of the ForEach callback methods. Change-Id: I54bc87c1060f1d73470ca8b7fd645ffa23059606 --- sw/source/core/doc/docchart.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sw/source/core/doc/docchart.cxx') 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(); } } -- cgit