D28460: Add KCModuleStateProbe as base class for plugin
Kai Uwe Broulik
noreply at phabricator.kde.org
Tue Mar 31 10:48:11 BST 2020
broulik added inline comments.
INLINE COMMENTS
> kcmoduleloader.cpp:165
> +
> + if (!mod.library().isEmpty()) {
> + QString error;
Use an early return here
> kcmoduleloader.cpp:176
> + if (factory) {
> + auto p = factory->create<KCModuleStateProbe>(nullptr, args2);
> + if (p) {
This looks like it leaks
> kcmoduleloader.cpp:182
> +
> + auto p = mod.service()->createInstance<KCModuleStateProbe>(nullptr, args2, &error);
> + if (p) {
Error can be `nullptr`. Either print a warning or remove it
REPOSITORY
R295 KCMUtils
REVISION DETAIL
https://phabricator.kde.org/D28460
To: bport, #plasma, ervin
Cc: broulik, kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200331/10cf0c24/attachment-0001.html>
More information about the Kde-frameworks-devel
mailing list