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.
Details
Details
- Reviewers
hein - Group Reviewers
Plasma - Commits
- R119:dadb306d4299: [Folder View] Simplify clearing of lists
Compiles. Just found that local change I made months ago and been using forever with no issues.
Diff Detail
Diff Detail
- Repository
- R119 Plasma Desktop
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.