diff options
author | Noel Grandin <noel@peralex.com> | 2012-04-25 11:55:05 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-04-25 12:35:33 +0200 |
commit | 9fc0297b5f96062d636eb8f459df8a1aafc96252 (patch) | |
tree | 157d46189c1048bf1b9046e840742194f7b09647 /sw/source/ui/misc/redlndlg.cxx | |
parent | 4552c996473b8a931e3d47335cca8acc9bb2bc4f (diff) |
Convert SV_DECL_PTRARR(SvLBoxEntryArr) to std::vector
Diffstat (limited to 'sw/source/ui/misc/redlndlg.cxx')
-rw-r--r-- | sw/source/ui/misc/redlndlg.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sw/source/ui/misc/redlndlg.cxx b/sw/source/ui/misc/redlndlg.cxx index 512619e8a97c..5be01f847ffe 100644 --- a/sw/source/ui/misc/redlndlg.cxx +++ b/sw/source/ui/misc/redlndlg.cxx @@ -71,7 +71,6 @@ SFX_IMPL_MODELESSDIALOG( SwRedlineAcceptChild, FN_REDLINE_ACCEPT ) SV_IMPL_OP_PTRARR_SORT(SwRedlineDataParentSortArr, SwRedlineDataParentPtr) -SV_IMPL_PTRARR(SvLBoxEntryArr, SvLBoxEntryPtr) static sal_uInt16 nSortMode = 0xffff; static sal_Bool bSortDir = sal_True; @@ -705,17 +704,17 @@ void SwRedlineAcceptDlg::RemoveParents(sal_uInt16 nStart, sal_uInt16 nEnd) SvLBoxEntry *pEntry = aRedlineParents[i].pTLBParent; if (pEntry) { - long nIdx = aLBoxArr.Count() - 1L; + long nIdx = aLBoxArr.size() - 1L; sal_uLong nAbsPos = pModel->GetAbsPos(pEntry); while (nIdx >= 0 && pModel->GetAbsPos(aLBoxArr[ static_cast< sal_uInt16 >(nIdx) ]) > nAbsPos) nIdx--; - aLBoxArr.Insert( pEntry, static_cast< sal_uInt16 >(++nIdx) ); + aLBoxArr.insert( aLBoxArr.begin() + static_cast< sal_uInt16 >(++nIdx) , pEntry); } } // clear TLB from behind - long nIdx = (long)aLBoxArr.Count() - 1L; + long nIdx = (long)aLBoxArr.size() - 1L; while (nIdx >= 0) pTable->RemoveEntry(aLBoxArr[ static_cast< sal_uInt16 >(nIdx--) ]); |