aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main_qmladaptor.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main_qmladaptor.cpp b/src/main_qmladaptor.cpp
index 731efaf..b34c9d4 100644
--- a/src/main_qmladaptor.cpp
+++ b/src/main_qmladaptor.cpp
@@ -26,8 +26,9 @@
#include "main_qmladaptor.h"
-MainQMLAdaptor::MainQMLAdaptor(QObject *parent, QQmlApplicationEngine* engine) : QObject(parent)
-{
+MainQMLAdaptor::MainQMLAdaptor(QObject *parent, QQmlApplicationEngine* engine) : QObject(parent) {
+ Q_ASSERT(engine != nullptr);
+
_engine = engine;
}