diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-10-21 14:49:50 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-11-07 09:00:53 +0000 |
commit | 3f37847fc3758d66cb16e8e070c29ac5b39dbc7a (patch) | |
tree | 238252b16f4a34e9b6e1ae2c23e77030a5063aba /src/qml/jsruntime/qv4arrayobject.cpp | |
parent | e72306a6f2aeb2bddbb462c205db8fad2fb5a1a4 (diff) |
Rename the construct 'virtual' method to callAsConstructor
To make it consistent with the rest of the engine.
Change-Id: I57b98fa26134f9864c663f47371ef3e9ca16ac9c
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4arrayobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4arrayobject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4arrayobject.cpp b/src/qml/jsruntime/qv4arrayobject.cpp index 206e3a9fc3..a0dd26ce6c 100644 --- a/src/qml/jsruntime/qv4arrayobject.cpp +++ b/src/qml/jsruntime/qv4arrayobject.cpp @@ -55,7 +55,7 @@ void Heap::ArrayCtor::init(QV4::ExecutionContext *scope) Heap::FunctionObject::init(scope, QStringLiteral("Array")); } -ReturnedValue ArrayCtor::construct(const Managed *m, CallData *callData) +ReturnedValue ArrayCtor::callAsConstructor(const Managed *m, CallData *callData) { ExecutionEngine *v4 = static_cast<const ArrayCtor *>(m)->engine(); Scope scope(v4); @@ -82,7 +82,7 @@ ReturnedValue ArrayCtor::construct(const Managed *m, CallData *callData) ReturnedValue ArrayCtor::call(const Managed *that, CallData *callData) { - return construct(that, callData); + return callAsConstructor(that, callData); } void ArrayPrototype::init(ExecutionEngine *engine, Object *ctor) |