[Differential] [Request, 10 lines] D1026: [FolderModel] Simplify deleting existing drag image
broulik (Kai Uwe Broulik)
noreply at phabricator.kde.org
Fri Feb 26 14:11:25 UTC 2016
broulik created this revision.
broulik added reviewers: Plasma, hein.
broulik set the repository for this revision to rPLASMADESKTOP Plasma Desktop.
broulik added a project: Plasma.
Herald added a subscriber: plasma-devel.
Instead of looking up three times (contains, value, remove) we just use take which removes the item and returns it and delete that. If there is no such item Qt promises to return a null pointer which is safe to delete.
rPLASMADESKTOP Plasma Desktop
To: broulik, Plasma, hein
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Plasma-devel