From: Lars Knoll Date: Tue, 6 May 2014 11:30:31 +0000 (+0200) Subject: Fix compiler warning X-Git-Tag: v5.3.99+beta1~384 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b84f08c8b7c91a979bd74840561af2391ef20666;p=platform%2Fupstream%2Fqtdeclarative.git Fix compiler warning Change-Id: I26df4f1b8417c6b075d81eaf118669a4103503e2 Reviewed-by: Simon Hausmann --- diff --git a/src/qml/jsruntime/qv4object_p.h b/src/qml/jsruntime/qv4object_p.h index 40f38ee..5e32bb6 100644 --- a/src/qml/jsruntime/qv4object_p.h +++ b/src/qml/jsruntime/qv4object_p.h @@ -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);