From cce809078727f4cf574f21012c4ac31453e1842c Mon Sep 17 00:00:00 2001 From: Hrvoje Senjan Date: Tue, 29 Mar 2016 16:29:04 +0200 Subject: [PATCH] Fix compilation with gcc 4.8 Reviewers: graesslin Reviewed By: graesslin Subscribers: plasma-devel Projects: #plasma Differential Revision: https://phabricator.kde.org/D1237 --- src/wayland/subcompositor_interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/subcompositor_interface.cpp b/src/wayland/subcompositor_interface.cpp index 23fec333f0..99a2207ff2 100644 --- a/src/wayland/subcompositor_interface.cpp +++ b/src/wayland/subcompositor_interface.cpp @@ -177,7 +177,7 @@ void SubSurfaceInterface::Private::create(ClientConnection *client, quint32 vers surface->d_func()->subSurfacePending.slideIsSet = false; parent->d_func()->addChild(QPointer(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