Commit f86ea447 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

ProjectExplorer: Use member initialization in CustomWizardParameters



Change-Id: Id461feb771990756adcaea98ac2f27f87f1b7ce9
Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
parent 5662f721
......@@ -198,11 +198,6 @@ bool CustomWizardValidationRule::validate(QJSEngine &engine, const QMap<QString,
return valid;
}
CustomWizardParameters::CustomWizardParameters() :
firstPageId(-1)
{
}
void CustomWizardParameters::clear()
{
directory.clear();
......
......@@ -103,7 +103,7 @@ class CustomWizardParameters
public:
enum ParseResult { ParseOk, ParseDisabled, ParseFailed };
CustomWizardParameters();
CustomWizardParameters() = default;
void clear();
ParseResult parse(QIODevice &device, const QString &configFileFullPath,
QString *errorMessage);
......@@ -120,10 +120,10 @@ public:
QString fieldPageTitle;
QList<CustomWizardField> fields;
QList<CustomWizardValidationRule> rules;
int firstPageId;
int firstPageId = -1;
// Wizard Factory data:
Core::IWizardFactory::WizardKind kind;
Core::IWizardFactory::WizardKind kind = Core::IWizardFactory::FileWizard;
QIcon icon;
QString description;
QString displayName;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment