summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-12 17:51:15 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-12 17:51:15 +0800
commite301e1c801441a592373df5d4b90ee9859f66fcd (patch)
treed4b22e09859829f0daf98f9ff7004fffe3a8a798
parentfe0a17cc38d21c0c0cfb45f5d8f08c6e72f9e409 (diff)
Change the casting of parent to engine from dynamic to static
-rw-r--r--controller.cxx2
1 files changed, 1 insertions, 1 deletions
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<QQmlApplicationEngine*>(parent);
+ auto engine = static_cast<QQmlApplicationEngine*>(parent);
auto rootObjects = engine->rootObjects();
auto appWindow = rootObjects[0];