D29140: Show POTD in lock screen
David Redondo
noreply at phabricator.kde.org
Sat May 16 10:56:41 BST 2020
davidre added inline comments.
INLINE COMMENTS
> kded_potd.cpp:25
> + delete engine;
> + delete watcher;
> +}
Don't need to delete watcher because you constructed it with `this` as parent. https://doc.qt.io/qt-5/objecttrees.html
For the engine don't delete it because you don't have the ownership pof the object. The function just returned a pointer to it.
> When the DataEngineConsumer class is deleted, all engines accessed using it are de-referenced and possibly deleted (in the case that there are no other users of the engine in question).
https://api.kde.org/frameworks/plasma-framework/html/classPlasma_1_1DataEngineConsumer.html
REPOSITORY
R114 Plasma Addons
REVISION DETAIL
https://phabricator.kde.org/D29140
To: guoyunhe, #plasma, davidre, broulik
Cc: davidre, ngraham, plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, ragreen, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20200516/0124e3a6/attachment.htm>
More information about the Plasma-devel
mailing list