~blue-shell/blue-shell/baloo

Viewing all changes in revision 1453.

  • Committer: Stefan Brüns
  • Date: 2019-02-10 23:25:07 UTC
  • Revision ID: git-v1:c6fd08d4c3c9d414e0234b9316e13d6f868d881f
Optimize Baloo::File copy assign operator, fix Baloo::File::load(url)

Summary:
There is no need to delete and create a new Private on assignment, it is
sufficient to reassign its members.

File::load(url) resets the url, afterwards he old corresponding property
map is no longer valid, clear it.

Test Plan: ctest

Reviewers: #baloo, #frameworks, ngraham, poboiko

Reviewed By: #baloo, ngraham

Subscribers: kde-frameworks-devel

Tags: #frameworks, #baloo

Differential Revision: https://phabricator.kde.org/D18877

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: