diff options
author | Lars Knoll <[email protected]> | 2017-10-21 14:49:50 +0200 |
---|---|---|
committer | Lars Knoll <[email protected]> | 2017-11-07 09:00:53 +0000 |
commit | 3f37847fc3758d66cb16e8e070c29ac5b39dbc7a (patch) | |
tree | 238252b16f4a34e9b6e1ae2c23e77030a5063aba /src/qml/jsruntime/qv4functionobject_p.h | |
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 <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4functionobject_p.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/qml/jsruntime/qv4functionobject_p.h b/src/qml/jsruntime/qv4functionobject_p.h index 398fd8b207..6a65a7c1ce 100644 --- a/src/qml/jsruntime/qv4functionobject_p.h +++ b/src/qml/jsruntime/qv4functionobject_p.h @@ -164,7 +164,7 @@ struct Q_QML_EXPORT FunctionObject: Object { ReturnedValue call(const Value *thisObject, const Value *argv, int argc) const { return d()->jsCall(this, thisObject, argv, argc); } - static ReturnedValue construct(const Managed *that, CallData *); + static ReturnedValue callAsConstructor(const Managed *that, CallData *); static ReturnedValue call(const Managed *that, CallData *d); static Heap::FunctionObject *createScriptFunction(ExecutionContext *scope, Function *function); @@ -186,7 +186,7 @@ struct FunctionCtor: FunctionObject { V4_OBJECT2(FunctionCtor, FunctionObject) - static ReturnedValue construct(const Managed *that, CallData *callData); + static ReturnedValue callAsConstructor(const Managed *that, CallData *callData); static ReturnedValue call(const Managed *that, CallData *callData); }; @@ -211,7 +211,7 @@ struct Q_QML_EXPORT BuiltinFunction : FunctionObject { return scope->engine()->memoryManager->allocObject<BuiltinFunction>(scope, name, code); } - static ReturnedValue construct(const Managed *, CallData *); + static ReturnedValue callAsConstructor(const Managed *, CallData *); static ReturnedValue call(const Managed *that, CallData *callData); }; @@ -233,7 +233,7 @@ struct ScriptFunction : FunctionObject { V4_OBJECT2(ScriptFunction, FunctionObject) V4_INTERNALCLASS(ScriptFunction) - static ReturnedValue construct(const Managed *, CallData *callData); + static ReturnedValue callAsConstructor(const Managed *, CallData *callData); static ReturnedValue call(const Managed *that, CallData *callData); InternalClass *classForConstructor() const; @@ -252,7 +252,7 @@ struct BoundFunction: FunctionObject { Value boundThis() const { return d()->boundThis; } Heap::MemberData *boundArgs() const { return d()->boundArgs; } - static ReturnedValue construct(const Managed *, CallData *d); + static ReturnedValue callAsConstructor(const Managed *, CallData *d); static ReturnedValue call(const Managed *that, CallData *dd); }; |