Fix compiler warning
authorLars Knoll <lars.knoll@digia.com>
Tue, 6 May 2014 11:30:31 +0000 (13:30 +0200)
committerSimon Hausmann <simon.hausmann@digia.com>
Wed, 18 Jun 2014 14:53:49 +0000 (16:53 +0200)
Change-Id: I26df4f1b8417c6b075d81eaf118669a4103503e2
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/jsruntime/qv4object_p.h

index 40f38ee..5e32bb6 100644 (file)
@@ -168,7 +168,8 @@ struct Q_QML_EXPORT Object: Managed {
     void defineReadonlyProperty(const StringRef name, ValueRef value);
 
     void insertMember(const StringRef s, const ValueRef v, PropertyAttributes attributes = Attr_Data) {
-        insertMember(s, Property(*v), attributes);
+        Property p(*v);
+        insertMember(s, p, attributes);
     }
     void insertMember(const StringRef s, const Property &p, PropertyAttributes attributes);