aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4functionobject.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2014-11-14 09:31:59 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2014-11-22 07:56:58 +0100
commit6d2904ce547757fa554cdab6724a088c80abf5ac (patch)
treef3cd50654b8a140d843656961d107db6231bdce3 /src/qml/jsruntime/qv4functionobject.cpp
parent9f717b650ea0a7efc4240240f957beba8d027bda (diff)
Remove two reinterpret_casts in Object
Change-Id: I921cd8129acb47cffd58be9551a6925c4f296d41 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject.cpp')
-rw-r--r--src/qml/jsruntime/qv4functionobject.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/jsruntime/qv4functionobject.cpp b/src/qml/jsruntime/qv4functionobject.cpp
index 7c2ab2cc80..ea82923cc5 100644
--- a/src/qml/jsruntime/qv4functionobject.cpp
+++ b/src/qml/jsruntime/qv4functionobject.cpp
@@ -150,10 +150,10 @@ void FunctionObject::init(String *n, bool createProto)
if (createProto) {
Scoped<Object> proto(s, scope()->engine->newObject(scope()->engine->protoClass));
proto->ensureMemberIndex(s.engine, Heap::FunctionObject::Index_ProtoConstructor);
- proto->memberData()->data()[Heap::FunctionObject::Index_ProtoConstructor] = this->asReturnedValue();
- memberData()->data()[Heap::FunctionObject::Index_Prototype] = proto.asReturnedValue();
+ proto->memberData()->data[Heap::FunctionObject::Index_ProtoConstructor] = this->asReturnedValue();
+ memberData()->data[Heap::FunctionObject::Index_Prototype] = proto.asReturnedValue();
} else {
- memberData()->data()[Heap::FunctionObject::Index_Prototype] = Encode::undefined();
+ memberData()->data[Heap::FunctionObject::Index_Prototype] = Encode::undefined();
}
ScopedValue v(s, n);