diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-12 17:51:15 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-12 17:51:15 +0800 |
commit | e301e1c801441a592373df5d4b90ee9859f66fcd (patch) | |
tree | d4b22e09859829f0daf98f9ff7004fffe3a8a798 /controller.cxx | |
parent | fe0a17cc38d21c0c0cfb45f5d8f08c6e72f9e409 (diff) |
Change the casting of parent to engine from dynamic to static
Diffstat (limited to 'controller.cxx')
-rw-r--r-- | controller.cxx | 2 |
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]; |