Browse Source

fix codacy issues

pull/2/head
Skycoder42 7 years ago
parent
commit
8e265784d9
No known key found for this signature in database GPG Key ID: 8E01AD9EF0578D2B
  1. 6
      src/mvvmquick/quickpresenter.cpp
  2. 6
      src/mvvmquick/quickpresenter_p.h
  3. 2
      src/mvvmwidgets/widgetspresenter.cpp

6
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()

6
src/mvvmquick/quickpresenter_p.h

@ -20,11 +20,11 @@ public:
static void setQmlPresenter(QObject *presenter);
private:
QHash<const QMetaObject *, QUrl> explicitMappings;
QStringList searchDirs;
QPointer<QObject> qmlPresenter;
InputViewFactory *inputViewFactory;
QHash<const QMetaObject *, QUrl> explicitMappings;
QStringList searchDirs;
};
}

2
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()
{}

Loading…
Cancel
Save