diff options
Diffstat (limited to 'sc/source/ui/miscdlgs/lbseldlg.cxx')
-rw-r--r-- | sc/source/ui/miscdlgs/lbseldlg.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sc/source/ui/miscdlgs/lbseldlg.cxx b/sc/source/ui/miscdlgs/lbseldlg.cxx index 291449d1c..fca6b1868 100644 --- a/sc/source/ui/miscdlgs/lbseldlg.cxx +++ b/sc/source/ui/miscdlgs/lbseldlg.cxx @@ -48,7 +48,7 @@ ScSelEntryDlg::ScSelEntryDlg( Window* pParent, sal_uInt16 nResId, const String& aTitle, const String& aLbTitle, - List& aEntryList ) : + const std::vector<String> &rEntryList ) : ModalDialog ( pParent, ScResId( nResId ) ), // aFlLbTitle ( this, ScResId( FL_ENTRYLIST ) ), @@ -62,12 +62,9 @@ ScSelEntryDlg::ScSelEntryDlg( Window* pParent, aLb.Clear(); aLb.SetDoubleClickHdl( LINK( this, ScSelEntryDlg, DblClkHdl ) ); - void* pListEntry = aEntryList.First(); - while ( pListEntry ) - { - aLb.InsertEntry( *((String*)pListEntry ) ); - pListEntry = aEntryList.Next(); - } + std::vector<String>::const_iterator pIter; + for ( pIter = rEntryList.begin(); pIter != rEntryList.end(); ++pIter ) + aLb.InsertEntry(*pIter); if ( aLb.GetEntryCount() > 0 ) aLb.SelectEntryPos( 0 ); |