D10658: [UDisksDeviceBackend] Avoid double lookup

Kai Uwe Broulik noreply at phabricator.kde.org
Mon Feb 19 14:35:56 UTC 2018


broulik created this revision.
broulik added reviewers: Frameworks, davidedmundson.
Restricted Application added a project: Frameworks.
broulik requested review of this revision.

REVISION SUMMARY
  `QMap::value()` would return a `nullptr` if there is no such element.
  It is also perfectly valid to delete a `nullptr`

TEST PLAN
  Compiles, devices still work

REPOSITORY
  R245 Solid

REVISION DETAIL
  https://phabricator.kde.org/D10658

AFFECTED FILES
  src/solid/devices/backends/udisks2/udisksdevicebackend.cpp

To: broulik, #frameworks, davidedmundson
Cc: michaelh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180219/4d38b623/attachment.html>


More information about the Kde-frameworks-devel mailing list