D16250: Use lambdas instead of std::bind()
Stefan BrĂ¼ns
noreply at phabricator.kde.org
Tue Oct 16 15:21:06 BST 2018
bruns added a comment.
In D16250#344183 <https://phabricator.kde.org/D16250#344183>, @ivan wrote:
> 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.
Qt coding style <https://wiki.qt.io/Coding_Conventions#Lambdas> mandates the first
REPOSITORY
R127 KWayland
REVISION DETAIL
https://phabricator.kde.org/D16250
To: volkov, #kwin
Cc: bruns, davidedmundson, ivan, kde-frameworks-devel, michaelh, ngraham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20181016/862e60b3/attachment.html>
More information about the Kde-frameworks-devel
mailing list