From e301e1c801441a592373df5d4b90ee9859f66fcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Thu, 12 Sep 2019 17:51:15 +0800 Subject: Change the casting of parent to engine from dynamic to static --- controller.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'controller.cxx') diff --git a/controller.cxx b/controller.cxx index 3b4b4de..9b471d3 100644 --- a/controller.cxx +++ b/controller.cxx @@ -9,7 +9,7 @@ Controller::Controller(QObject* parent) : QObject{parent} worker->moveToThread(&thread); connect(&thread, &QThread::finished, worker, &QObject::deleteLater); - auto engine = dynamic_cast(parent); + auto engine = static_cast(parent); auto rootObjects = engine->rootObjects(); auto appWindow = rootObjects[0]; -- cgit v1.2.3