aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4errorobject.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-10-21 14:49:50 +0200
committerLars Knoll <lars.knoll@qt.io>2017-11-07 09:00:53 +0000
commit3f37847fc3758d66cb16e8e070c29ac5b39dbc7a (patch)
tree238252b16f4a34e9b6e1ae2c23e77030a5063aba /src/qml/jsruntime/qv4errorobject.cpp
parente72306a6f2aeb2bddbb462c205db8fad2fb5a1a4 (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/qv4errorobject.cpp')
-rw-r--r--src/qml/jsruntime/qv4errorobject.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/qml/jsruntime/qv4errorobject.cpp b/src/qml/jsruntime/qv4errorobject.cpp
index c1724f84ca..91251ced57 100644
--- a/src/qml/jsruntime/qv4errorobject.cpp
+++ b/src/qml/jsruntime/qv4errorobject.cpp
@@ -233,7 +233,7 @@ void Heap::ErrorCtor::init(QV4::ExecutionContext *scope, const QString &name)
Heap::FunctionObject::init(scope, name);
}
-ReturnedValue ErrorCtor::construct(const Managed *that, CallData *callData)
+ReturnedValue ErrorCtor::callAsConstructor(const Managed *that, CallData *callData)
{
Value v = Value::fromReturnedValue(callData->argument(0));
return ErrorObject::create<ErrorObject>(that->engine(), v)->asReturnedValue();
@@ -249,7 +249,7 @@ void Heap::EvalErrorCtor::init(QV4::ExecutionContext *scope)
Heap::ErrorCtor::init(scope, QStringLiteral("EvalError"));
}
-ReturnedValue EvalErrorCtor::construct(const Managed *m, CallData *callData)
+ReturnedValue EvalErrorCtor::callAsConstructor(const Managed *m, CallData *callData)
{
return ErrorObject::create<EvalErrorObject>(m->engine(), callData->args[0])->asReturnedValue();
}
@@ -259,7 +259,7 @@ void Heap::RangeErrorCtor::init(QV4::ExecutionContext *scope)
Heap::ErrorCtor::init(scope, QStringLiteral("RangeError"));
}
-ReturnedValue RangeErrorCtor::construct(const Managed *m, CallData *callData)
+ReturnedValue RangeErrorCtor::callAsConstructor(const Managed *m, CallData *callData)
{
return ErrorObject::create<RangeErrorObject>(m->engine(), callData->args[0])->asReturnedValue();
}
@@ -269,7 +269,7 @@ void Heap::ReferenceErrorCtor::init(QV4::ExecutionContext *scope)
Heap::ErrorCtor::init(scope, QStringLiteral("ReferenceError"));
}
-ReturnedValue ReferenceErrorCtor::construct(const Managed *m, CallData *callData)
+ReturnedValue ReferenceErrorCtor::callAsConstructor(const Managed *m, CallData *callData)
{
return ErrorObject::create<ReferenceErrorObject>(m->engine(), callData->args[0])->asReturnedValue();
}
@@ -279,7 +279,7 @@ void Heap::SyntaxErrorCtor::init(QV4::ExecutionContext *scope)
Heap::ErrorCtor::init(scope, QStringLiteral("SyntaxError"));
}
-ReturnedValue SyntaxErrorCtor::construct(const Managed *m, CallData *callData)
+ReturnedValue SyntaxErrorCtor::callAsConstructor(const Managed *m, CallData *callData)
{
return ErrorObject::create<SyntaxErrorObject>(m->engine(), callData->args[0])->asReturnedValue();
}
@@ -289,7 +289,7 @@ void Heap::TypeErrorCtor::init(QV4::ExecutionContext *scope)
Heap::ErrorCtor::init(scope, QStringLiteral("TypeError"));
}
-ReturnedValue TypeErrorCtor::construct(const Managed *m, CallData *callData)
+ReturnedValue TypeErrorCtor::callAsConstructor(const Managed *m, CallData *callData)
{
return ErrorObject::create<TypeErrorObject>(m->engine(), callData->args[0])->asReturnedValue();
}
@@ -299,7 +299,7 @@ void Heap::URIErrorCtor::init(QV4::ExecutionContext *scope)
Heap::ErrorCtor::init(scope, QStringLiteral("URIError"));
}
-ReturnedValue URIErrorCtor::construct(const Managed *m, CallData *callData)
+ReturnedValue URIErrorCtor::callAsConstructor(const Managed *m, CallData *callData)
{
return ErrorObject::create<URIErrorObject>(m->engine(), callData->args[0])->asReturnedValue();
}