diff --git a/shell_client.cpp b/shell_client.cpp index 2eba9ebece..2bcb7a8f21 100644 --- a/shell_client.cpp +++ b/shell_client.cpp @@ -525,7 +525,7 @@ void ShellClient::findInternalWindow() } const QWindowList windows = kwinApp()->topLevelWindows(); for (QWindow *w: windows) { - QScopedPointer s(KWayland::Client::Surface::fromWindow(w)); + auto s = KWayland::Client::Surface::fromWindow(w); if (!s) { continue; }