Skip to content
Commit dadb306d authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Folder View] Simplify clearing of lists

Avoids triple lookup (contains → value → remove)
take() removes the item from the list and returns it.
It returns nullptr for non-existing items which is perfectly fine to call delete on.

Differential Revision: https://phabricator.kde.org/D11946
parent 7e98c5d7
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