OSDN Git Service

fix gcc warning
authorThomas Hartmann <Thomas.Hartmann@nokia.com>
Tue, 20 Sep 2011 11:29:43 +0000 (13:29 +0200)
committerThomas Hartmann <Thomas.Hartmann@nokia.com>
Tue, 20 Sep 2011 12:02:13 +0000 (14:02 +0200)
Change-Id: I7bd2b2d8256efb5782c2c87920cd2ab9da60a227
Reviewed-on: http://codereview.qt-project.org/5235
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
src/plugins/qmldesigner/designercore/model/modelnodecontextmenu.cpp

index c6a45b7..7a5ee9f 100644 (file)
@@ -206,8 +206,8 @@ static inline void getProperties(const ModelNode node, QHash<QString, QVariant>
     if (QmlObjectNode(node).isValid()) {
         foreach (const QString &propertyName, node.propertyNames()) {
             if (node.property(propertyName).isVariantProperty() ||
-                    node.property(propertyName).isBindingProperty() &&
-                    !propertyName.contains(QLatin1String("anchors."))) {
+                    (node.property(propertyName).isBindingProperty() &&
+                     !propertyName.contains(QLatin1String("anchors.")))) {
                 propertyHash.insert(propertyName, QmlObjectNode(node).instanceValue(propertyName));
             }
         }