[UDisks] Optimize several property checks
ClosedPublic

Authored by bruns on Apr 11 2018, 10:29 PM.

Details

Summary

Use QStringLiteral for hasInterface argument

Retrieve MountPoints propery just once when checking mount state.

Test Plan

make
solid-hardware5 list details

Diff Detail

Repository
R245 Solid
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
bruns created this revision.Apr 11 2018, 10:29 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptApr 11 2018, 10:29 PM
bruns requested review of this revision.Apr 11 2018, 10:29 PM
broulik accepted this revision.Apr 12 2018, 10:12 AM
broulik added a subscriber: broulik.
broulik added inline comments.
src/solid/devices/backends/udisks2/udisksdevice.cpp
840–841

const

This revision is now accepted and ready to land.Apr 12 2018, 10:12 AM
This revision was automatically updated to reflect the committed changes.