aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4argumentsobject_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2014-01-20 13:51:00 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-21 20:46:50 +0100
commit7d4fc70e70ca566900c01aa7c5e3ec4770d15933 (patch)
tree8b223bae1ab0604788abae489e87ec2fbd5298e8 /src/qml/jsruntime/qv4argumentsobject_p.h
parent3efae4fc7fff96f147f79013ef9fff9c31557229 (diff)
Split ManagedVTable into two classes
Keep the basic methods in ManagedVTable, but have the Object related stuff in an ObjectVTable class. Change-Id: I9b068acf3caef813686227b8d935e7df1a7d1a6e Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4argumentsobject_p.h')
-rw-r--r--src/qml/jsruntime/qv4argumentsobject_p.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/qml/jsruntime/qv4argumentsobject_p.h b/src/qml/jsruntime/qv4argumentsobject_p.h
index 42b749cbb5..20354272f2 100644
--- a/src/qml/jsruntime/qv4argumentsobject_p.h
+++ b/src/qml/jsruntime/qv4argumentsobject_p.h
@@ -50,12 +50,12 @@ namespace QV4 {
struct ArgumentsGetterFunction: FunctionObject
{
- Q_MANAGED
+ V4_OBJECT
uint index;
ArgumentsGetterFunction(ExecutionContext *scope, uint index)
: FunctionObject(scope), index(index) {
- setVTable(&static_vtbl);
+ setVTable(staticVTable());
}
static ReturnedValue call(Managed *that, CallData *d);
@@ -63,12 +63,12 @@ struct ArgumentsGetterFunction: FunctionObject
struct ArgumentsSetterFunction: FunctionObject
{
- Q_MANAGED
+ V4_OBJECT
uint index;
ArgumentsSetterFunction(ExecutionContext *scope, uint index)
: FunctionObject(scope), index(index) {
- setVTable(&static_vtbl);
+ setVTable(staticVTable());
}
static ReturnedValue call(Managed *that, CallData *callData);
@@ -76,7 +76,7 @@ struct ArgumentsSetterFunction: FunctionObject
struct ArgumentsObject: Object {
- Q_MANAGED
+ V4_OBJECT
Q_MANAGED_TYPE(ArgumentsObject)
CallContext *context;
bool fullyCreated;