CResourceTableContextMenu: Make use of push_back over operator<<
This commit is contained in:
parent
09b724fbb2
commit
85fdbe709a
|
@ -172,7 +172,7 @@ void CResourceTableContextMenu::ShowReferencers()
|
||||||
for (CResourceIterator Iter(mpClickedEntry->ResourceStore()); Iter; ++Iter)
|
for (CResourceIterator Iter(mpClickedEntry->ResourceStore()); Iter; ++Iter)
|
||||||
{
|
{
|
||||||
if (Iter->Dependencies()->HasDependency(mpClickedEntry->ID()))
|
if (Iter->Dependencies()->HasDependency(mpClickedEntry->ID()))
|
||||||
EntryList << *Iter;
|
EntryList.push_back(*Iter);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!mpModel->IsDisplayingUserEntryList())
|
if (!mpModel->IsDisplayingUserEntryList())
|
||||||
|
@ -197,7 +197,7 @@ void CResourceTableContextMenu::ShowDependencies()
|
||||||
CResourceEntry *pEntry = mpClickedEntry->ResourceStore()->FindEntry(*Iter);
|
CResourceEntry *pEntry = mpClickedEntry->ResourceStore()->FindEntry(*Iter);
|
||||||
|
|
||||||
if (pEntry)
|
if (pEntry)
|
||||||
EntryList << pEntry;
|
EntryList.push_back(pEntry);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!mpModel->IsDisplayingUserEntryList())
|
if (!mpModel->IsDisplayingUserEntryList())
|
||||||
|
@ -217,9 +217,9 @@ void CResourceTableContextMenu::Delete()
|
||||||
for (const QModelIndex& kIndex : mSelectedIndexes)
|
for (const QModelIndex& kIndex : mSelectedIndexes)
|
||||||
{
|
{
|
||||||
if (mpModel->IsIndexDirectory(kIndex))
|
if (mpModel->IsIndexDirectory(kIndex))
|
||||||
Directories << mpModel->IndexDirectory(kIndex);
|
Directories.push_back(mpModel->IndexDirectory(kIndex));
|
||||||
else
|
else
|
||||||
Resources << mpModel->IndexEntry(kIndex);
|
Resources.push_back(mpModel->IndexEntry(kIndex));
|
||||||
}
|
}
|
||||||
|
|
||||||
mpBrowser->Delete(Resources, Directories);
|
mpBrowser->Delete(Resources, Directories);
|
||||||
|
|
Loading…
Reference in New Issue