From 4a478391bb802c4b838a4feefcb892e57430f237 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Mon, 12 May 2014 15:24:10 +0200 Subject: [PATCH] QmlDesigner: Fix warning about wrong initialization order Change-Id: I6d85dc89a4e0dc978308648feaa4fe754d1d5c14 Reviewed-by: Nikita Baryshnikov Reviewed-by: Thomas Hartmann Reviewed-by: Marco Bubke --- .../components/propertyeditor/qmlanchorbindingproxy.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.cpp b/src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.cpp index 4f6c6374391..a1e2cf74477 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.cpp @@ -66,10 +66,11 @@ static inline void restoreProperty(ModelNode node, const PropertyName &propertyN namespace Internal { QmlAnchorBindingProxy::QmlAnchorBindingProxy(QObject *parent) : - QObject(parent), m_locked(false), m_ignoreQml(false), + QObject(parent), m_relativeTopTarget(SameEdge), m_relativeBottomTarget(SameEdge), m_relativeLeftTarget(SameEdge), m_relativeRightTarget(SameEdge), - m_relativeVerticalTarget(Center), m_relativeHorizontalTarget(Center) + m_relativeVerticalTarget(Center), m_relativeHorizontalTarget(Center), + m_locked(false), m_ignoreQml(false) { }