summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorJoseph Powers <jpowers27@cox.net>2011-01-01 10:57:36 -0800
committerJoseph Powers <jpowers27@cox.net>2011-01-01 10:57:36 -0800
commit3ceae8b493a7393a06f7433efd13920cd625c606 (patch)
treec9574e11c04d25aa687d17c797c0d70d7ad94ffa /cui
parentb72a0418983887aa45ced173a70a820402e41f9a (diff)
Remove DECLARE_LIST( TargetList, String* )
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/cuiimapwnd.cxx4
-rw-r--r--cui/source/dialogs/hltpbase.cxx12
2 files changed, 8 insertions, 8 deletions
diff --git a/cui/source/dialogs/cuiimapwnd.cxx b/cui/source/dialogs/cuiimapwnd.cxx
index 2da453213f5d..d52476bf221e 100644
--- a/cui/source/dialogs/cuiimapwnd.cxx
+++ b/cui/source/dialogs/cuiimapwnd.cxx
@@ -88,8 +88,8 @@ URLDlg::URLDlg( Window* pWindow, const String& rURL, const String& rAlternativeT
maEdtDescription.SetText( rDescription );
maEdtName.SetText( rName );
- for( String* pStr = rTargetList.First(); pStr; pStr = rTargetList.Next() )
- maCbbTargets.InsertEntry( *pStr );
+ for( size_t i = 0, n = rTargetList.size(); i < n; ++i )
+ maCbbTargets.InsertEntry( *rTargetList[ i ] );
if( !rTarget.Len() )
maCbbTargets.SetText( String::CreateFromAscii( "_self" ) );
diff --git a/cui/source/dialogs/hltpbase.cxx b/cui/source/dialogs/hltpbase.cxx
index 2181535ed18f..60dc605de4d0 100644
--- a/cui/source/dialogs/hltpbase.cxx
+++ b/cui/source/dialogs/hltpbase.cxx
@@ -67,17 +67,17 @@ SvxFramesComboBox::SvxFramesComboBox ( Window* pParent, const ResId& rResId,
if ( pFrame )
{
pFrame->GetTargetList(*pList);
- USHORT nCount = (USHORT)pList->Count();
- if( nCount )
+ if( !pList->empty() )
{
- USHORT i;
+ size_t nCount = pList->size();
+ size_t i;
for ( i = 0; i < nCount; i++ )
{
- InsertEntry(*pList->GetObject(i));
+ InsertEntry( *pList->at( i ) );
}
- for ( i = nCount; i; i-- )
+ for ( i = nCount; i; )
{
- delete pList->GetObject( i - 1 );
+ delete pList->at( --i );
}
}
delete pList;