From 3f37847fc3758d66cb16e8e070c29ac5b39dbc7a Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Sat, 21 Oct 2017 14:49:50 +0200 Subject: Rename the construct 'virtual' method to callAsConstructor To make it consistent with the rest of the engine. Change-Id: I57b98fa26134f9864c663f47371ef3e9ca16ac9c Reviewed-by: Erik Verbruggen --- src/qml/jsruntime/qv4arraybuffer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/qml/jsruntime/qv4arraybuffer.cpp') diff --git a/src/qml/jsruntime/qv4arraybuffer.cpp b/src/qml/jsruntime/qv4arraybuffer.cpp index dd29411b46..7a8e1c67b5 100644 --- a/src/qml/jsruntime/qv4arraybuffer.cpp +++ b/src/qml/jsruntime/qv4arraybuffer.cpp @@ -52,7 +52,7 @@ void Heap::ArrayBufferCtor::init(QV4::ExecutionContext *scope) Heap::FunctionObject::init(scope, QStringLiteral("ArrayBuffer")); } -ReturnedValue ArrayBufferCtor::construct(const Managed *m, CallData *callData) +ReturnedValue ArrayBufferCtor::callAsConstructor(const Managed *m, CallData *callData) { ExecutionEngine *v4 = m->engine(); Scope scope(v4); @@ -75,7 +75,7 @@ ReturnedValue ArrayBufferCtor::construct(const Managed *m, CallData *callData) ReturnedValue ArrayBufferCtor::call(const Managed *that, CallData *callData) { - return construct(that, callData); + return callAsConstructor(that, callData); } ReturnedValue ArrayBufferCtor::method_isView(const BuiltinFunction *, CallData *callData) -- cgit v1.2.3