Review Request 114912: KSharedPtr => QWeakPointer and QSharedPointer
Aurélien Gâteau
agateau at kde.org
Wed Jan 8 17:47:28 UTC 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/114912/
-----------------------------------------------------------
(Updated Jan. 8, 2014, 6:47 p.m.)
Review request for Plasma.
Repository: plasma-framework
Description
-------
Replace use of KSharedPtr with a QWeakPointer and QSharedPointer in Plasma::Svg.
This removes the last dependency from plasma-framework on kde4support.
This change is a bit more involved than other kde4support removals because QSharedPointer does not provide a count() method. I therefore reworked the code to store the SharedSvgRenderer as a QWeakPointer in s_renderers, making it possible to detect when the last one goes away by creating a QWeakPointer guard in SvgPrivate::eraseRenderer().
Diffs
-----
CMakeLists.txt 8b60011
src/plasma/CMakeLists.txt aced599
src/plasma/private/svg_p.h 5fdebf3
src/plasma/svg.cpp 6542b34
Diff: https://git.reviewboard.kde.org/r/114912/diff/
Testing (updated)
-------
Ran a plasma-shell session, did not notice any crash.
Thanks,
Aurélien Gâteau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20140108/74be8411/attachment.html>
More information about the Plasma-devel
mailing list