D16250: Use lambdas instead of std::bind()

Ivan Čukić noreply at phabricator.kde.org
Tue Oct 16 15:18:30 BST 2018


ivan added a comment.


  The parentheses are not necessary when a lambda has no arguments.
  
    [something]() { ::: }
  
  can become:
  
    [something] { ::: }
  
  KWin uses both of these from what I've seen. Personally, I prefer the second.
  
  Otherwise, +1 for the change.

REPOSITORY
  R127 KWayland

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

To: volkov, #kwin
Cc: ivan, kde-frameworks-devel, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20181016/9daa21e4/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list