D15047: Export the StorageDevices object.

James Smith noreply at phabricator.kde.org
Fri Aug 24 03:49:01 BST 2018


smithjd marked an inline comment as done.
smithjd added a comment.


  In D15047#314477 <https://phabricator.kde.org/D15047#314477>, @bruns wrote:
  
  > There is no need for this, just create a new StorageDevices where you need it.
  >  Creating a second StorageDevices instance in a process is quite cheap.
  
  
  Creating a separate object cluttered the console with duplicated debug output and raised a threading error.

INLINE COMMENTS

> bruns wrote in fileindexerconfig.cpp:322
> This is bad, you remove the const from the QList<>
> Read up about Qt and detaching ...

According to https://www.dvratil.cz/2015/06/qt-containers-and-c11-range-based-loops this particular example will detach with or without the const intermediate.

REPOSITORY
  R293 Baloo

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

To: smithjd, broulik
Cc: bruns, kde-frameworks-devel, #baloo, ashaposhnikov, michaelh, astippich, spoorun, ngraham, abrahams
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180824/04f43b3d/attachment.html>


More information about the Kde-frameworks-devel mailing list