mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-10 14:07:56 +00:00
CSelectAllCommand: Make use of push_back over operator<<
This commit is contained in:
@@ -19,9 +19,9 @@ public:
|
|||||||
, mpSelection(pSelection)
|
, mpSelection(pSelection)
|
||||||
{
|
{
|
||||||
for (CSelectionIterator It(pSelection); It; ++It)
|
for (CSelectionIterator It(pSelection); It; ++It)
|
||||||
mOldSelection << *It;
|
mOldSelection.push_back(*It);
|
||||||
for (CSceneIterator It(pScene, NodeFlags); It; ++It)
|
for (CSceneIterator It(pScene, NodeFlags); It; ++It)
|
||||||
mNewSelection << *It;
|
mNewSelection.push_back(*It);
|
||||||
}
|
}
|
||||||
|
|
||||||
void undo() override { mpSelection->SetSelectedNodes(mOldSelection.DereferenceList()); }
|
void undo() override { mpSelection->SetSelectedNodes(mOldSelection.DereferenceList()); }
|
||||||
|
|||||||
Reference in New Issue
Block a user