diff options
author | Noel Grandin <noel@peralex.com> | 2012-06-28 12:23:29 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-07-04 23:23:22 +0200 |
commit | 488ae25fc8c7624d502d28cc5195395d887e34b0 (patch) | |
tree | 587f16e64b2f2a95e84acde6a72093567257d6cb /sfx2/source/appl/linkmgr2.cxx | |
parent | 8ae16bb0017c0f499b10731c4a0b637aeeb58a30 (diff) |
Convert local var from SvPtrarr to std::vector
Change-Id: If19e08f88844d0aec7ad537a8f99e52b96c1a409
Diffstat (limited to 'sfx2/source/appl/linkmgr2.cxx')
-rw-r--r-- | sfx2/source/appl/linkmgr2.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/appl/linkmgr2.cxx b/sfx2/source/appl/linkmgr2.cxx index 7bd60b3b20bb..147ade785320 100644 --- a/sfx2/source/appl/linkmgr2.cxx +++ b/sfx2/source/appl/linkmgr2.cxx @@ -321,7 +321,7 @@ void LinkManager::UpdateAllLinks( { // First make a copy of the array in order to update links // links in ... no contact between them! - SvPtrarr aTmpArr( 255 ); + std::vector<SvBaseLink*> aTmpArr; sal_uInt16 n; for( n = 0; n < aLinkTbl.size(); ++n ) { @@ -331,12 +331,12 @@ void LinkManager::UpdateAllLinks( Remove( n-- ); continue; } - aTmpArr.Insert( pLink, aTmpArr.Count() ); + aTmpArr.push_back( pLink ); } - for( n = 0; n < aTmpArr.Count(); ++n ) + for( n = 0; n < aTmpArr.size(); ++n ) { - SvBaseLink* pLink = (SvBaseLink*)aTmpArr[ n ]; + SvBaseLink* pLink = aTmpArr[ n ]; // search first in the array after the entry sal_uInt16 nFndPos = USHRT_MAX; |