D11452: sanitizer: Improve device listing

Stefan BrĂ¼ns noreply at phabricator.kde.org
Tue Apr 10 02:47:43 UTC 2018


bruns added inline comments.

INLINE COMMENTS

> databasesanitizer.cpp:163
> +            DeviceInfo& deviceInfo = usedDevices[info.deviceId];
> +            if (deviceInfo.id == 0) {
> +                deviceInfo.id = info.deviceId;

instead of checking and filling it in here, just iterate over usedDevices after you have finished iterating over infos.

REPOSITORY
  R293 Baloo

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

To: michaelh, #baloo, #frameworks
Cc: bruns, smithjd, ashaposhnikov, michaelh, astippich, spoorun, ngraham, alexeymin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180410/1ec05438/attachment.html>


More information about the Kde-frameworks-devel mailing list