diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2011-06-03 19:37:52 -0430 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2011-06-09 21:40:06 +0200 |
commit | bb694eb1405684cb73c36e01c528f16e07ba488a (patch) | |
tree | 340bd1ac199230831005b608fe658c45f38a0501 /sc/source/ui/miscdlgs | |
parent | 174773e150e9feb88221ce4ccc372bb188cc59b4 (diff) |
Replace List with std::vector<String>.
Diffstat (limited to 'sc/source/ui/miscdlgs')
-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 ); |