Kaydet (Commit) 16b7354f authored tarafından August Sodora's avatar August Sodora

SvStringsDtor->std::vector

üst f1de38b5
......@@ -107,7 +107,7 @@ public:
const SwAuthEntry* GetEntryByHandle(long nHandle) const;
void GetAllEntryIdentifiers( SvStringsDtor& rToFill )const;
void GetAllEntryIdentifiers( std::vector<String>& rToFill )const;
const SwAuthEntry* GetEntryByIdentifier(const String& rIdentifier)const;
bool ChangeEntryContent(const SwAuthEntry* pNewEntry);
......
......@@ -218,13 +218,12 @@ const SwAuthEntry* SwAuthorityFieldType::GetEntryByHandle(long nHandle) const
}
void SwAuthorityFieldType::GetAllEntryIdentifiers(
SvStringsDtor& rToFill )const
std::vector<String>& rToFill )const
{
for(sal_uInt16 j = 0; j < m_pDataArr->Count(); j++)
{
SwAuthEntry* pTemp = m_pDataArr->GetObject(j);
rToFill.Insert( new String( pTemp->GetAuthorField(
AUTH_FIELD_IDENTIFIER )), rToFill.Count() );
rToFill.push_back(pTemp->GetAuthorField(AUTH_FIELD_IDENTIFIER));
}
}
......
......@@ -1477,10 +1477,10 @@ IMPL_LINK(SwAuthMarkDlg, ChangeSourceHdl, RadioButton*, pButton)
pSh->GetFldType(RES_AUTHORITY, aEmptyStr);
if(pFType)
{
SvStringsDtor aIds;
std::vector<String> aIds;
pFType->GetAllEntryIdentifiers( aIds );
for(sal_uInt16 n = 0; n < aIds.Count(); n++)
aEntryLB.InsertEntry(*aIds.GetObject(n));
for(size_t n = 0; n < aIds.size(); ++n)
aEntryLB.InsertEntry(aIds[n]);
}
if(m_sCreatedEntry[AUTH_FIELD_IDENTIFIER].Len())
aEntryLB.InsertEntry(m_sCreatedEntry[AUTH_FIELD_IDENTIFIER]);
......@@ -1656,10 +1656,10 @@ SwCreateAuthEntryDlg_Impl::SwCreateAuthEntryDlg_Impl(Window* pParent,
rSh.GetFldType(RES_AUTHORITY, aEmptyStr);
if(pFType)
{
SvStringsDtor aIds;
std::vector<String> aIds;
pFType->GetAllEntryIdentifiers( aIds );
for(sal_uInt16 n = 0; n < aIds.Count(); n++)
pIdentifierBox->InsertEntry(*aIds.GetObject(n));
for(size_t n = 0; n < aIds.size(); ++n)
pIdentifierBox->InsertEntry(aIds[n]);
}
pIdentifierBox->SetText(pFields[aCurInfo.nToxField]);
Size aTmp(aEditSize);
......
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