[Differential] [Request, 4 lines] D3703: Fix build (with clang at least)

apol (Aleix Pol Gonzalez) noreply at phabricator.kde.org
Fri Dec 16 12:08:57 UTC 2016


apol created this revision.
apol added a reviewer: Plasma.
Restricted Application added a project: KWin.
Restricted Application added subscribers: kwin, plasma-devel.

REVISION SUMMARY
  No need to capture the variable as it's static. Also apparently wrong.
  Used to get the following error message:
  /home/apol/devel/frameworks/kwin/libinput/connection.cpp:103:56: error: 's_self' cannot be captured because it does not have automatic storage duration
  
    connect(s_self, &Connection::deviceAdded, s_self, [s_self](Device* device) {
                                                       ^
  
  /home/apol/devel/frameworks/kwin/libinput/connection.cpp:45:25: note: 's_self' declared here
  Connection *Connection::s_self = nullptr;
  
    ^
  
  /home/apol/devel/frameworks/kwin/libinput/connection.cpp:106:58: error: 's_self' cannot be captured because it does not have automatic storage duration
  
    connect(s_self, &Connection::deviceRemoved, s_self, [s_self](Device* device) {
                                                         ^
  
  /home/apol/devel/frameworks/kwin/libinput/connection.cpp:45:25: note: 's_self' declared here
  Connection *Connection::s_self = nullptr;
  
    ^

REPOSITORY
  R108 KWin

BRANCH
  master

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

AFFECTED FILES
  libinput/connection.cpp

EMAIL PREFERENCES
  https://phabricator.kde.org/settings/panel/emailpreferences/

To: apol, #plasma
Cc: plasma-devel, kwin, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20161216/bedc6c6b/attachment.html>


More information about the Plasma-devel mailing list