D28590: Add a QString Solid::Device::displayName, used in Fstab Device for network mounts

Méven Car noreply at phabricator.kde.org
Fri Apr 24 14:32:19 BST 2020


meven marked 3 inline comments as done.
meven added a comment.


  In D28590#656297 <https://phabricator.kde.org/D28590#656297>, @bruns wrote:
  
  > In D28590#656133 <https://phabricator.kde.org/D28590#656133>, @meven wrote:
  >
  > > In D28590#654139 <https://phabricator.kde.org/D28590#654139>, @bruns wrote:
  > >
  > > > Do not create m_storageAccess in the constructor
  > >
  > >
  > > Hmm, you told me `the f (m_displayName.isEmpty()) block belongs here`, I don't see why instantiating `m_storageAccess` here is bad but mehh.
  >
  >
  > Please read again.
  >
  > 1. m_storageAccess is comparatively expensive
  > 2. I showed you how to get the mount state without StorageAccess
  > 3. I told you where to initialize it, yes. Doing it correctly of course still applies.
  
  
  Btw I updated already the code to use `FstabHandling::currentMountPoints` and `FstabHandling::currentMountPoints(m_device);` as you suggested (as StorageAccess does).

REPOSITORY
  R245 Solid

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

To: meven, #frameworks, bruns, sitter
Cc: kde-frameworks-devel, LeGast00n, cblack, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200424/e3949ac1/attachment.html>


More information about the Kde-frameworks-devel mailing list