aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2021-07-06 20:07:01 +0200
committerDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2021-07-06 20:07:01 +0200
commitd30e51002393f48c271fc4109f1b6b71ea1d0440 (patch)
tree7bc211181c0601d720678e6862759e4668f3d551 /src
parent61b4ee3b8f1d4c5d85b7a561551167fa41b12400 (diff)
downloadRWA.Support.DesktopApp-d30e51002393f48c271fc4109f1b6b71ea1d0440.tar.gz
RWA.Support.DesktopApp-d30e51002393f48c271fc4109f1b6b71ea1d0440.tar.bz2
RWA.Support.DesktopApp-d30e51002393f48c271fc4109f1b6b71ea1d0440.zip
MainQMLAdaptor: engine can't be nullptr in constructor
Diffstat (limited to 'src')
-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;
}