forked from qt-creator/qt-creator
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user