xuetianweng added inline comments. INLINE COMMENTS
> kstatusnotifieritem.cpp:882 > + > + QDBusPendingReply<QDBusVariant> pendingReply = > statusNotifierWatcher->connection().call(call); > + auto watcher = new QDBusPendingCallWatcher(pendingReply); The template is not necessary here. Maybe auto or QDBusPendingCall ? > kstatusnotifieritem.cpp:883 > + QDBusPendingReply<QDBusVariant> pendingReply = > statusNotifierWatcher->connection().call(call); > + auto watcher = new QDBusPendingCallWatcher(pendingReply); > + QObject::connect(watcher, &QDBusPendingCallWatcher::finished, q, > [this, watcher]() { I prefer to assign a parent to the watcher. Maybe "q"? > kstatusnotifieritem.cpp:884 > + auto watcher = new QDBusPendingCallWatcher(pendingReply); > + QObject::connect(watcher, &QDBusPendingCallWatcher::finished, q, > [this, watcher]() { > + QDBusPendingReply<QDBusVariant> reply = *watcher; watcher can be obtained via the argument of this signal, no need to capture it. REPOSITORY R289 KNotifications REVISION DETAIL https://phabricator.kde.org/D8346 To: davidedmundson Cc: xuetianweng, #frameworks