diff --git a/src/mvvmquick/quickpresenter.cpp b/src/mvvmquick/quickpresenter.cpp index 19c830a..e468cda 100644 --- a/src/mvvmquick/quickpresenter.cpp +++ b/src/mvvmquick/quickpresenter.cpp @@ -197,10 +197,10 @@ bool QuickPresenter::nameOrClassContains(const QObject *obj, const QString &cont // ------------- Private Implementation ------------- QuickPresenterPrivate::QuickPresenterPrivate() : - explicitMappings(), - searchDirs({QStringLiteral(":/qtmvvm/views")}), qmlPresenter(nullptr), - inputViewFactory(nullptr) + inputViewFactory(nullptr), + explicitMappings(), + searchDirs({QStringLiteral(":/qtmvvm/views")}) {} QuickPresenter *QuickPresenterPrivate::currentPresenter() diff --git a/src/mvvmquick/quickpresenter_p.h b/src/mvvmquick/quickpresenter_p.h index c1f4f79..aa3b40b 100644 --- a/src/mvvmquick/quickpresenter_p.h +++ b/src/mvvmquick/quickpresenter_p.h @@ -20,11 +20,11 @@ public: static void setQmlPresenter(QObject *presenter); private: - QHash explicitMappings; - QStringList searchDirs; - QPointer qmlPresenter; InputViewFactory *inputViewFactory; + + QHash explicitMappings; + QStringList searchDirs; }; } diff --git a/src/mvvmwidgets/widgetspresenter.cpp b/src/mvvmwidgets/widgetspresenter.cpp index f823670..57c2d73 100644 --- a/src/mvvmwidgets/widgetspresenter.cpp +++ b/src/mvvmwidgets/widgetspresenter.cpp @@ -431,7 +431,7 @@ void WidgetsPresenter::presentOtherDialog(const MessageConfig &config, QPointer< // ------------- Private Implementation ------------- WidgetsPresenterPrivate::WidgetsPresenterPrivate() : - inputViewFactory(), + inputViewFactory(nullptr), implicitMappings({&SettingsDialog::staticMetaObject}), explicitMappings() {}