diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-04-04 09:31:10 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-04-12 13:59:02 +0000 |
commit | 3932536b59df7b2fa010be6dd9f2501f6e306c8b (patch) | |
tree | de989972a3f123f108c193c4b3e6e9e33528bdb2 /src/qml/jsruntime/qv4typedarray.cpp | |
parent | 30850d1ebc28bfe68b329229b537a7d6a7791b29 (diff) |
Better encapsulation for EngineBase::internalClass
Turn it into a method instead of accessing the array directly
to simplify refactoring.
Change-Id: I197b56c8f58cfdfd294f429e6b15268c755f9837
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4typedarray.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4typedarray.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4typedarray.cpp b/src/qml/jsruntime/qv4typedarray.cpp index fa0685855a..194c8f5e28 100644 --- a/src/qml/jsruntime/qv4typedarray.cpp +++ b/src/qml/jsruntime/qv4typedarray.cpp @@ -351,7 +351,7 @@ void Heap::TypedArray::init(Type t) Heap::TypedArray *TypedArray::create(ExecutionEngine *e, Heap::TypedArray::Type t) { - QV4::InternalClass *ic = e->internalClasses[EngineBase::Class_Empty]->changeVTable(staticVTable()); + QV4::InternalClass *ic = e->internalClasses(EngineBase::Class_Empty)->changeVTable(staticVTable()); ic = ic->changePrototype(e->typedArrayPrototype[t].d()); return e->memoryManager->allocObject<TypedArray>(ic, t); } |