Commit ff7e757d authored by Tim Jenssen's avatar Tim Jenssen
Browse files

QmlDesigner: use default initializer where possible



Change-Id: I9bde2421a5cc99b1c815b568fa2a4a2e722b852d
Reviewed-by: Thomas Hartmann's avatarThomas Hartmann <thomas.hartmann@qt.io>
parent 19e1eacf
......@@ -575,10 +575,10 @@ private:
void initialiseProperties();
TypeName m_qualfiedTypeName;
int m_majorVersion;
int m_minorVersion;
bool m_isValid;
bool m_isFileComponent;
int m_majorVersion = -1;
int m_minorVersion = -1;
bool m_isValid = false;
bool m_isFileComponent = false;
PropertyNameList m_properties;
PropertyNameList m_signals;
QList<TypeName> m_propertyTypes;
......@@ -673,10 +673,11 @@ NodeMetaInfoPrivate::NodeMetaInfoPrivate() : m_isValid(false)
}
NodeMetaInfoPrivate::NodeMetaInfoPrivate(Model *model, TypeName type, int maj, int min) :
m_qualfiedTypeName(type), m_majorVersion(maj),
m_minorVersion(min), m_isValid(false), m_isFileComponent(false),
m_model(model)
NodeMetaInfoPrivate::NodeMetaInfoPrivate(Model *model, TypeName type, int maj, int min)
: m_qualfiedTypeName(type)
, m_majorVersion(maj)
, m_minorVersion(min)
, m_model(model)
{
if (context()) {
const CppComponentValue *cppObjectValue = getCppComponentValue();
......
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