summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorRafael Dominguez <venccsralph@gmail.com>2011-05-21 16:49:31 -0430
committerJoseph Powers <jpowers27@cox.net>2011-05-22 21:18:54 -0700
commit1d405dc64a805e75983e9320100391c45ab4b7bb (patch)
treee808bdee1e49286a3ea5becf5ba3b94a98832015 /svx
parent4f9458c116ae848a4f2a5abca42547770d92e4e4 (diff)
Replace List with std::vector<String>.
Diffstat (limited to 'svx')
-rw-r--r--svx/source/gallery2/galbrws2.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/svx/source/gallery2/galbrws2.cxx b/svx/source/gallery2/galbrws2.cxx
index 3941f418ebc6..6b1a265dd9aa 100644
--- a/svx/source/gallery2/galbrws2.cxx
+++ b/svx/source/gallery2/galbrws2.cxx
@@ -122,11 +122,10 @@ void GalleryBackgroundPopup::StateChanged( sal_uInt16 nSID, SfxItemState eState,
if( ( pStrLstItem = PTR_CAST( SfxStringListItem, pItem ) ) != NULL )
{
- List* pList = pStrLstItem->GetList();
+ const std::vector<String> &aList = pStrLstItem->GetList();
- if( pList )
- for ( sal_uIntPtr i = 0, nCount = pList->Count(); i < nCount; i++ )
- InsertItem( (sal_uInt16) i + 1, *(String*) pList->GetObject( i ) );
+ for ( sal_uIntPtr i = 0, nCount = aList.size(); i < nCount; i++ )
+ InsertItem( (sal_uInt16) i + 1, aList[i]);
}
else if( ( pStrItem = PTR_CAST( SfxStringItem, pItem ) ) != NULL )
InsertItem( 1, pStrItem->GetValue() );