Skip to content
This repository was archived by the owner on Mar 4, 2023. It is now read-only.

Commit 8e26578

Browse files
committed
fix codacy issues
1 parent 4fec824 commit 8e26578

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/mvvmquick/quickpresenter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,10 @@ bool QuickPresenter::nameOrClassContains(const QObject *obj, const QString &cont
197197
// ------------- Private Implementation -------------
198198

199199
QuickPresenterPrivate::QuickPresenterPrivate() :
200-
explicitMappings(),
201-
searchDirs({QStringLiteral(":/qtmvvm/views")}),
202200
qmlPresenter(nullptr),
203-
inputViewFactory(nullptr)
201+
inputViewFactory(nullptr),
202+
explicitMappings(),
203+
searchDirs({QStringLiteral(":/qtmvvm/views")})
204204
{}
205205

206206
QuickPresenter *QuickPresenterPrivate::currentPresenter()

src/mvvmquick/quickpresenter_p.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ class Q_MVVMQUICK_EXPORT QuickPresenterPrivate
2020
static void setQmlPresenter(QObject *presenter);
2121

2222
private:
23-
QHash<const QMetaObject *, QUrl> explicitMappings;
24-
QStringList searchDirs;
25-
2623
QPointer<QObject> qmlPresenter;
2724
InputViewFactory *inputViewFactory;
25+
26+
QHash<const QMetaObject *, QUrl> explicitMappings;
27+
QStringList searchDirs;
2828
};
2929

3030
}

src/mvvmwidgets/widgetspresenter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ void WidgetsPresenter::presentOtherDialog(const MessageConfig &config, QPointer<
431431
// ------------- Private Implementation -------------
432432

433433
WidgetsPresenterPrivate::WidgetsPresenterPrivate() :
434-
inputViewFactory(),
434+
inputViewFactory(nullptr),
435435
implicitMappings({&SettingsDialog::staticMetaObject}),
436436
explicitMappings()
437437
{}

0 commit comments

Comments
 (0)