diff options
author | Noel Grandin <noel@peralex.com> | 2012-06-12 15:41:27 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-06-12 23:25:10 +0200 |
commit | 2a360b68475d6fff5b6618feddb0b52f3a4a2373 (patch) | |
tree | 451af5b0f0f86241f578cf123818886436e31894 /cui | |
parent | 3a27dcd0ccac691307648c3d7a96c28412e0a311 (diff) |
Convert SV_DECL_PTRARR(SvBaseLinks) to std::vector
Change-Id: I9197dc4fd7ed32f030de8121913265ec78c83585
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/linkdlg.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cui/source/dialogs/linkdlg.cxx b/cui/source/dialogs/linkdlg.cxx index b61e7213079b..5df9370a9b3d 100644 --- a/cui/source/dialogs/linkdlg.cxx +++ b/cui/source/dialogs/linkdlg.cxx @@ -283,7 +283,7 @@ IMPL_LINK_NOARG(SvBaseLinksDlg, UpdateNowClickHdl) SvBaseLinkRef xLink = aLnkArr[ n ]; // first look for the entry in the array - for( sal_uInt16 i = 0; i < pLinkMgr->GetLinks().Count(); ++i ) + for( sal_uInt16 i = 0; i < pLinkMgr->GetLinks().size(); ++i ) if( &xLink == *pLinkMgr->GetLinks()[ i ] ) { xLink->SetUseCache( sal_False ); @@ -513,7 +513,7 @@ IMPL_LINK( SvBaseLinksDlg, EndEditHdl, sfx2::SvBaseLink*, _pLink ) // anymore, fill the list completely new. Otherwise only the // edited link needs to be refreshed. sal_Bool bLinkFnd = sal_False; - for( sal_uInt16 n = pLinkMgr->GetLinks().Count(); n; ) + for( sal_uInt16 n = pLinkMgr->GetLinks().size(); n; ) if( _pLink == &(*pLinkMgr->GetLinks()[ --n ]) ) { bLinkFnd = sal_True; @@ -575,12 +575,12 @@ void SvBaseLinksDlg::SetManager( LinkManager* pNewMgr ) if( pLinkMgr ) { SvBaseLinks& rLnks = (SvBaseLinks&)pLinkMgr->GetLinks(); - for( sal_uInt16 n = 0; n < rLnks.Count(); ++n ) + for( sal_uInt16 n = 0; n < rLnks.size(); ++n ) { SvBaseLinkRef* pLinkRef = rLnks[ n ]; if( !pLinkRef->Is() ) { - rLnks.Remove( n, 1 ); + rLnks.erase( rLnks.begin() + n ); --n; continue; } @@ -588,7 +588,7 @@ void SvBaseLinksDlg::SetManager( LinkManager* pNewMgr ) InsertEntry( **pLinkRef ); } - if( rLnks.Count() ) + if( !rLnks.empty() ) { SvLBoxEntry* pEntry = Links().GetEntry( 0 ); Links().SetCurEntry( pEntry ); @@ -673,7 +673,7 @@ void SvBaseLinksDlg::SetActLink( SvBaseLink * pLink ) { const SvBaseLinks& rLnks = pLinkMgr->GetLinks(); sal_uInt16 nSelect = 0; - for( sal_uInt16 n = 0; n < rLnks.Count(); ++n ) + for( sal_uInt16 n = 0; n < rLnks.size(); ++n ) { SvBaseLinkRef* pLinkRef = rLnks[ n ]; // #109573# only visible links have been inserted into the TreeListBox, |