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

Stefan BrĂ¼ns noreply at phabricator.kde.org
Fri Apr 24 12:01:06 BST 2020


bruns added a comment.


  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.

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/1625bae2/attachment.html>


More information about the Kde-frameworks-devel mailing list