projects
/
platform
/
upstream
/
qtdeclarative.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acd9bc4
)
Fix compiler warning
author
Lars Knoll
<lars.knoll@digia.com>
Tue, 6 May 2014 11:30:31 +0000
(13:30 +0200)
committer
Simon 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
patch
|
blob
|
history
diff --git
a/src/qml/jsruntime/qv4object_p.h
b/src/qml/jsruntime/qv4object_p.h
index
40f38ee
..
5e32bb6
100644
(file)
--- 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);