diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-05-12 15:01:07 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-05-19 06:23:19 +0000 |
commit | cdbc4b83d59e08189d6ece9ccd88a646be155c08 (patch) | |
tree | ffd52e753313d8c3528fdab5a37bc089545b48aa /src/qml/jsruntime/qv4lookup.cpp | |
parent | 70a49fe042dd244926cc4a9cb6affb8b4f3d9b7f (diff) |
Properly encapsulate all accesses to the vtable
Change-Id: I3f6ae59d01c7b6c898e98d3b6f65b84a19b8851a
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4lookup.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4lookup.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4lookup.cpp b/src/qml/jsruntime/qv4lookup.cpp index 0d467098fe..f8ac0cb650 100644 --- a/src/qml/jsruntime/qv4lookup.cpp +++ b/src/qml/jsruntime/qv4lookup.cpp @@ -287,7 +287,7 @@ ReturnedValue Lookup::getterGeneric(Lookup *l, ExecutionEngine *engine, const Va l->proto = proto->d(); if (attrs.isData()) { if (l->level == 0) { - uint nInline = l->proto->vt->nInlineProperties; + uint nInline = l->proto->vtable()->nInlineProperties; if (l->index < nInline) l->getter = Lookup::primitiveGetter0Inline; else { @@ -696,7 +696,7 @@ ReturnedValue Lookup::globalGetterGeneric(Lookup *l, ExecutionEngine *engine) if (v != Primitive::emptyValue().asReturnedValue()) { if (attrs.isData()) { if (l->level == 0) { - uint nInline = o->d()->vt->nInlineProperties; + uint nInline = o->d()->vtable()->nInlineProperties; if (l->index < nInline) l->globalGetter = globalGetter0Inline; else { |