Fix missing constructor initialisations where it affects codepaths.

This commit is contained in:
Bill King
2010-06-11 13:40:32 +10:00
parent 9e7d91a519
commit 7ccfd4799e
3 changed files with 8 additions and 3 deletions

View File

@@ -229,7 +229,7 @@ PropertyEditorNodeWrapper::PropertyEditorNodeWrapper(PropertyEditorValue* parent
connect(m_editorValue, SIGNAL(modelNodeChanged()), this, SLOT(update())); connect(m_editorValue, SIGNAL(modelNodeChanged()), this, SLOT(update()));
} }
PropertyEditorNodeWrapper::PropertyEditorNodeWrapper(QObject *parent) : QObject(parent) PropertyEditorNodeWrapper::PropertyEditorNodeWrapper(QObject *parent) : QObject(parent), m_editorValue(NULL)
{ {
} }

View File

@@ -48,7 +48,9 @@ namespace Internal {
*/ */
InternalNode::InternalNode() : InternalNode::InternalNode() :
m_valid(false) m_valid(false),
m_majorVersion(0),
m_minorVersion(0)
{ {
} }

View File

@@ -35,8 +35,11 @@
using namespace QmlDesigner; using namespace QmlDesigner;
DesignerSettings::DesignerSettings() DesignerSettings::DesignerSettings()
: openDesignMode(QmlDesigner::Constants::QML_OPENDESIGNMODE_DEFAULT) : openDesignMode(QmlDesigner::Constants::QML_OPENDESIGNMODE_DEFAULT),
itemSpacing(0),
snapMargin(0)
{} {}
void DesignerSettings::fromSettings(QSettings *settings) void DesignerSettings::fromSettings(QSettings *settings)
{ {
settings->beginGroup(QLatin1String(QmlDesigner::Constants::QML_SETTINGS_GROUP)); settings->beginGroup(QLatin1String(QmlDesigner::Constants::QML_SETTINGS_GROUP));