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/ui/vba | |
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/ui/vba')
-rw-r--r-- | sw/source/ui/vba/vbatablehelper.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/ui/vba/vbatablehelper.cxx b/sw/source/ui/vba/vbatablehelper.cxx index a7d624b66b43..3a8921879d92 100644 --- a/sw/source/ui/vba/vbatablehelper.cxx +++ b/sw/source/ui/vba/vbatablehelper.cxx @@ -61,7 +61,7 @@ sal_Int32 SwVbaTableHelper::getTabColumnsCount( sal_Int32 nRowIndex ) throw (uno if(!pTable->IsTblComplex()) { SwTableLines& rLines = pTable->GetTabLines(); - SwTableLine* pLine = rLines.GetObject( nRowIndex ); + SwTableLine* pLine = rLines[ nRowIndex ]; nRet = pLine->GetTabBoxes().size(); } return nRet; @@ -71,7 +71,7 @@ sal_Int32 SwVbaTableHelper::getTabColumnsMaxCount( ) throw (uno::RuntimeExceptio { sal_Int32 nRet = 0; //sal_Int32 nRowCount = mxTextTable->getRows()->getCount(); - sal_Int32 nRowCount = pTable->GetTabLines().Count(); + sal_Int32 nRowCount = pTable->GetTabLines().size(); for( sal_Int32 index = 0; index < nRowCount; index++ ) { sal_Int32 nColCount = getTabColumnsCount( index ); @@ -149,12 +149,12 @@ sal_Int32 SwVbaTableHelper::getTableWidth( ) throw (uno::RuntimeException) SwTableBox* SwVbaTableHelper::GetTabBox( sal_Int32 nCol, sal_Int32 nRow ) throw (css::uno::RuntimeException) { SwTableLines& rLines = pTable->GetTabLines(); - sal_Int32 nRowCount = rLines.Count(); + sal_Int32 nRowCount = rLines.size(); if( nRowCount < nRow ) throw uno::RuntimeException(); SwTableBox* pStart = NULL; - SwTableLine* pLine = rLines.GetObject( nRow ); + SwTableLine* pLine = rLines[ nRow ]; if( (sal_Int32)pLine->GetTabBoxes().size() < nCol ) throw uno::RuntimeException(); |