mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
Ref T464 Implement removal of one sequence from another in O(n),
assuming that elements in both sequences are in the same order in both.
This commit is contained in:
committed by
Klaus Basan
parent
40ae7174a7
commit
71de01065b
@@ -340,10 +340,7 @@ namespace BlackGui
|
||||
else
|
||||
{
|
||||
ContainerType unselectedObjects(container());
|
||||
for (const ObjectType &obj : selected)
|
||||
{
|
||||
unselectedObjects.remove(obj);
|
||||
}
|
||||
unselectedObjects.removeIfInSubset(selected);
|
||||
this->updateContainerMaybeAsync(unselectedObjects);
|
||||
delta = currentRows - unselectedObjects.size();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user