Review Request 129390: KRecentFilesAction: remove unnecessary copy
Anthony Fieroni
bvbfan at abv.bg
Sun Nov 13 13:23:43 UTC 2016
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/129390/#review100816
-----------------------------------------------------------
src/krecentfilesaction.cpp (line 99)
<https://git.reviewboard.kde.org/r/129390/#comment67658>
Yeah, you can't avoid copying, you can move it here
QUrl url = m_urls[action];
emit q->urlSelection(url);
But comment is needed again, because *strong* reference became weak
- Anthony Fieroni
On Ноев. 13, 2016, 1:45 след обяд, Elvis Angelaccio wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/129390/
> -----------------------------------------------------------
>
> (Updated Ноев. 13, 2016, 1:45 след обяд)
>
>
> Review request for KDE Frameworks.
>
>
> Repository: kconfigwidgets
>
>
> Description
> -------
>
> QUrl is implicitly shared, so the code does not do what the comment says.
> Add also a test case to make sure that the crash described in the comment doesn't happen anymore (again, thanks to implicit sharing).
>
>
> Diffs
> -----
>
> autotests/krecentfilesactiontest.h f09bf6349e5b98999373d762fdbc4fd3a1f8e8f4
> autotests/krecentfilesactiontest.cpp 1ba100dd1a8b5295e28c436157283e4f493563cd
> src/krecentfilesaction.cpp 7ffe2e7b75e028346af3215dada8e96ea940d65b
>
> Diff: https://git.reviewboard.kde.org/r/129390/diff/
>
>
> Testing
> -------
>
> All tests pass.
>
>
> Thanks,
>
> Elvis Angelaccio
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20161113/55e54458/attachment.html>
More information about the Kde-frameworks-devel
mailing list