Fix compiler warning about use of uninitialized variable
authorLars Knoll <lars.knoll@theqtcompany.com>
Fri, 9 Jan 2015 10:51:03 +0000 (11:51 +0100)
committerLars Knoll <lars.knoll@digia.com>
Sat, 10 Jan 2015 10:18:25 +0000 (11:18 +0100)
Change-Id: Ic9218d82c5f47d464a6536759cfe2c6dbfc9f985
Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
src/qml/qml/qqmlpropertycache.cpp

index a87aec8..9f96e36 100644 (file)
@@ -1537,6 +1537,7 @@ void QQmlMetaObject::resolveGadgetMethodOrPropertyIndex(QMetaObject::Call type,
         }
         break;
     default:
+        offset = 0;
         Q_UNIMPLEMENTED();
         offset = INT_MAX;
     }