From 50470e97c6268dcfb661d6886bc325d87829356a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Fl=C3=B6ser?= Date: Fri, 8 Sep 2017 16:06:33 +0200 Subject: [PATCH] [autotests] Drop cast to SceneOpenGL GenericSceneOpenGLTest Not really needed, instead we can compare on the compositing type. --- autotests/integration/generic_scene_opengl_test.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/autotests/integration/generic_scene_opengl_test.cpp b/autotests/integration/generic_scene_opengl_test.cpp index 4bae9b739e..f5560173e3 100644 --- a/autotests/integration/generic_scene_opengl_test.cpp +++ b/autotests/integration/generic_scene_opengl_test.cpp @@ -22,7 +22,7 @@ along with this program. If not, see . #include "effectloader.h" #include "cursor.h" #include "platform.h" -#include "scene_opengl.h" +#include "scene.h" #include "shell_client.h" #include "wayland_server.h" #include "effect_builtins.h" @@ -105,8 +105,9 @@ void GenericSceneOpenGLTest::testRestart() QVERIFY(sceneCreatedSpy.wait()); } QCOMPARE(sceneCreatedSpy.count(), 1); - auto scene = qobject_cast(KWin::Compositor::self()->scene()); + auto scene = KWin::Compositor::self()->scene(); QVERIFY(scene); + QCOMPARE(scene->compositingType(), KWin::OpenGL2Compositing); // trigger a repaint KWin::Compositor::self()->addRepaintFull();