[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
Please register or sign in to comment