diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2011-05-21 17:21:16 -0430 |
---|---|---|
committer | Joseph Powers <jpowers27@cox.net> | 2011-05-22 21:21:26 -0700 |
commit | fb23c2dfd1de3a62b186676783f550cd7e31bb00 (patch) | |
tree | 90fa10b0360b802cfcbf77ac7689387d483de4d6 /cui | |
parent | ea9d29c0bcf62b5465d1192521b9c6c8d723dace (diff) |
Replace List for std::vector<String>.
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/numpages.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/cui/source/tabpages/numpages.cxx b/cui/source/tabpages/numpages.cxx index 5586714da17d..42cde8c17fb2 100644 --- a/cui/source/tabpages/numpages.cxx +++ b/cui/source/tabpages/numpages.cxx @@ -3586,13 +3586,10 @@ void SvxNumOptionsTabPage::PageCreated(SfxAllItemSet aSet) if (pListItem) { ListBox& myCharFmtLB = GetCharFmtListBox(); - const List *pList = (pListItem)->GetList(); - sal_uInt32 nCount = pList->Count();; + const std::vector<String> &aList = (pListItem)->GetList(); + sal_uInt32 nCount = aList.size();; for(sal_uInt32 i = 0; i < nCount; i++) - { - myCharFmtLB.InsertEntry(*(const String*)(pList->GetObject(i)) ); - - } + myCharFmtLB.InsertEntry(aList[i]); } if (pMetricItem) SetMetric(static_cast<FieldUnit>(pMetricItem->GetValue())); |