Don't initialize QFlags unnecessarily

And if needed, do it with {} instead of with nullptr or 0.

Change-Id: Iae80253cd334494cfe1d69ec1552d710f2a31ad2
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2020-01-21 10:06:04 +01:00
parent 6ff762be51
commit 8c6e6d1dbd
7 changed files with 9 additions and 9 deletions

View File

@@ -141,7 +141,7 @@ Core::GeneratedFile JsonWizardFileGenerator::generateFile(const File &file,
}
}
Core::GeneratedFile::Attributes attributes = {};
Core::GeneratedFile::Attributes attributes;
if (JsonWizard::boolFromVariant(file.openInEditor, expander))
attributes |= Core::GeneratedFile::OpenEditorAttribute;
if (JsonWizard::boolFromVariant(file.openAsProject, expander))