D14996: Fix clazy 'connect-3arg-lambda' warnings

Kevin Funk noreply at phabricator.kde.org
Wed Aug 22 13:12:54 BST 2018


kfunk added inline comments.

INLINE COMMENTS

> antonanikin wrote in midebugsession.cpp:559
> Here we suppress warning instead of fixing because of suitable receiver missing. Maybe we can use `qApp` as a receiver?

`QTimer::singleShot(5000, this, [this]() {...}` or what am I missing?

When using the `this` as context object you can also simplify the lambda-body, i.e. remove the `QPointer` helper altogether.

REPOSITORY
  R32 KDevelop

REVISION DETAIL
  https://phabricator.kde.org/D14996

To: antonanikin, #kdevelop
Cc: kfunk, kdevelop-devel, antismap, iodelay, vbspam, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20180822/38181d26/attachment.html>


More information about the KDevelop-devel mailing list