Kaydet (Commit) b9d82d26 authored tarafından Rafael Dominguez's avatar Rafael Dominguez Kaydeden (comit) Joseph Powers

Replace List for std::vector<String>.

üst fb23c2df
......@@ -222,7 +222,7 @@ public:
void SetPaperFormatRanges( Paper eStart, Paper eEnd )
{ ePaperStart = eStart, ePaperEnd = eEnd; }
void SetCollectionList(const List* pList);
void SetCollectionList(const std::vector<String> &aList);
virtual void PageCreated (SfxAllItemSet aSet);
};
......
......@@ -1640,13 +1640,13 @@ IMPL_LINK_INLINE_END( SvxPageDescPage, CenterHdl_Impl, CheckBox *, EMPTYARG )
// -----------------------------------------------------------------------
void SvxPageDescPage::SetCollectionList(const List* pList)
void SvxPageDescPage::SetCollectionList(const std::vector<String> &aList)
{
sStandardRegister = *(String*)pList->GetObject(0);
for( sal_uInt16 i = 1; i < pList->Count(); i++ )
{
aRegisterLB.InsertEntry(*(String*)pList->GetObject(i));
}
OSL_ENSURE(!aList.empty(), "Empty string list");
sStandardRegister = aList[0];
for( sal_uInt16 i = 1; i < aList.size(); i++ )
aRegisterLB.InsertEntry(aList[i]);
aRegisterCB .Show();
aRegisterFT .Show();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment