diff options
author | Noel Grandin <noel@peralex.com> | 2012-05-10 17:42:10 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-05-14 19:49:15 +0200 |
commit | b8ace0f986769cc952718ab5e262808d899d5549 (patch) | |
tree | de7a7ee9ba280585506a4429a57af862aa79c938 /sw/source/core/doc/docchart.cxx | |
parent | 5031e17d4b11181be94448702b1026bd38e0b3c4 (diff) |
Convert SV_DECL_PTRARR_DEL(SwTableBoxes) to std::vector
I added a GetPos() method because quite a lot of code used that
method and the existing code is quite tied to the precise
return values of that method.
Change-Id: I9af6b923d978abe758b63d835f228495c020455a
Diffstat (limited to 'sw/source/core/doc/docchart.cxx')
-rw-r--r-- | sw/source/core/doc/docchart.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/doc/docchart.cxx b/sw/source/core/doc/docchart.cxx index 92df35686130..427164c946dd 100644 --- a/sw/source/core/doc/docchart.cxx +++ b/sw/source/core/doc/docchart.cxx @@ -83,19 +83,19 @@ sal_Bool SwTable::IsTblComplexForChart( const String& rSelection ) const else { const SwTableLines* pLns = &GetTabLines(); - pSttBox = (*pLns)[ 0 ]->GetTabBoxes()[ 0 ]; + pSttBox = (*pLns)[ 0 ]->GetTabBoxes().front(); while( !pSttBox->GetSttNd() ) // Until the Content Box! - pSttBox = pSttBox->GetTabLines()[ 0 ]->GetTabBoxes()[ 0 ]; + pSttBox = pSttBox->GetTabLines()[ 0 ]->GetTabBoxes().front(); const SwTableBoxes* pBoxes = &(*pLns)[ pLns->Count()-1 ]->GetTabBoxes(); - pEndBox = (*pBoxes)[ pBoxes->Count()-1 ]; + pEndBox = pBoxes->back(); while( !pEndBox->GetSttNd() ) { // Until the Content Box! pLns = &pEndBox->GetTabLines(); pBoxes = &(*pLns)[ pLns->Count()-1 ]->GetTabBoxes(); - pEndBox = (*pBoxes)[ pBoxes->Count()-1 ]; + pEndBox = pBoxes->back(); } } |