Fix compilation with gcc 4.8

Reviewers: graesslin

Reviewed By: graesslin

Subscribers: plasma-devel

Projects: #plasma

Differential Revision: https://phabricator.kde.org/D1237
This commit is contained in:
Hrvoje Senjan 2016-03-29 16:29:04 +02:00
parent d44b2ee30d
commit cce8090787

View file

@ -177,7 +177,7 @@ void SubSurfaceInterface::Private::create(ClientConnection *client, quint32 vers
surface->d_func()->subSurfacePending.slideIsSet = false;
parent->d_func()->addChild(QPointer<SubSurfaceInterface>(q));
QObject::connect(surface, &QObject::destroyed, q,
QObject::connect(surface.data(), &QObject::destroyed, q,
[this] {
// from spec: "If the wl_surface associated with the wl_subsurface is destroyed,
// the wl_subsurface object becomes inert. Note, that destroying either object