diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2011-05-21 18:50:49 -0430 |
---|---|---|
committer | Joseph Powers <jpowers27@cox.net> | 2011-05-22 21:20:46 -0700 |
commit | daf871cf9c3d3cc76697f438b1ae9c58e58f44f0 (patch) | |
tree | 1072d774fc1ee044baafdfb90ea1dbb7ebbe970a /sw | |
parent | ff32cdb8fad67aed3498c09b4f1efbdad28e14dc (diff) |
Replace List with std::vector<String>.
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/misc/num.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sw/source/ui/misc/num.cxx b/sw/source/ui/misc/num.cxx index 8088699c5ea7..29d74addd3fc 100644 --- a/sw/source/ui/misc/num.cxx +++ b/sw/source/ui/misc/num.cxx @@ -991,20 +991,16 @@ void SwSvxNumBulletTabDialog::PageCreated(sal_uInt16 nPageId, SfxTabPage& rPage) rCharFmtLB.InsertEntry( ViewShell::GetShellRes()->aStrNone ); SwDocShell* pDocShell = rWrtSh.GetView().GetDocShell(); ::FillCharStyleListBox(rCharFmtLB, pDocShell); - List aList; + + std::vector<String> aList; for(sal_uInt16 j = 0; j < rCharFmtLB.GetEntryCount(); j++) - { + aList.push_back( String(rCharFmtLB.GetEntry(j))); - aList.Insert( new XubString(rCharFmtLB.GetEntry(j)), LIST_APPEND ); - } aSet.Put( SfxStringListItem( SID_CHAR_FMT_LIST_BOX,&aList ) ) ; FieldUnit eMetric = ::GetDfltMetric(0 != PTR_CAST(SwWebDocShell, pDocShell)); aSet.Put ( SfxAllEnumItem(SID_METRIC_ITEM, static_cast< sal_uInt16 >(eMetric) ) ); rPage.PageCreated(aSet); - for( sal_uInt16 i = (sal_uInt16)aList.Count(); i; --i ) - delete (XubString*)aList.Remove(i); - aList.Clear(); } break; case RID_SVXPAGE_NUM_POSITION: |