diff options
author | Lars Knoll <[email protected]> | 2014-05-09 12:15:23 +0200 |
---|---|---|
committer | Simon Hausmann <[email protected]> | 2014-07-22 13:49:18 +0200 |
commit | dba56a752c932670c0e9461f106d2bc084276b6f (patch) | |
tree | 3a669663fa85dd3d61a83c29e8961b70ac53f046 /src/qml/jsruntime/qv4errorobject_p.h | |
parent | 00fa9049112385f65ccdcad02b8712a32626d20c (diff) |
Convert remaining FunctionObject's to new constructor scheme
Change-Id: I440d5b128d0ee28566ebfa82c2505a4bd97bba6b
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4errorobject_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4errorobject_p.h | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/src/qml/jsruntime/qv4errorobject_p.h b/src/qml/jsruntime/qv4errorobject_p.h index 949ac3b3ae..2bfdd4972d 100644 --- a/src/qml/jsruntime/qv4errorobject_p.h +++ b/src/qml/jsruntime/qv4errorobject_p.h @@ -125,9 +125,12 @@ struct URIErrorObject: ErrorObject { struct ErrorCtor: FunctionObject { + struct Data : FunctionObject::Data { + Data(ExecutionContext *scope); + Data(ExecutionContext *scope, const QString &name); + }; + V4_OBJECT - ErrorCtor(ExecutionContext *scope); - ErrorCtor(ExecutionContext *scope, const QString &name); static ReturnedValue construct(Managed *, CallData *callData); static ReturnedValue call(Managed *that, CallData *callData); @@ -135,49 +138,60 @@ struct ErrorCtor: FunctionObject struct EvalErrorCtor: ErrorCtor { + struct Data : ErrorCtor::Data { + Data(ExecutionContext *scope); + }; V4_OBJECT - EvalErrorCtor(ExecutionContext *scope); - static ReturnedValue construct(Managed *m, CallData *callData); }; struct RangeErrorCtor: ErrorCtor { + struct Data : ErrorCtor::Data { + Data(ExecutionContext *scope); + }; V4_OBJECT - RangeErrorCtor(ExecutionContext *scope); static ReturnedValue construct(Managed *m, CallData *callData); }; struct ReferenceErrorCtor: ErrorCtor { + struct Data : ErrorCtor::Data { + Data(ExecutionContext *scope); + }; V4_OBJECT - ReferenceErrorCtor(ExecutionContext *scope); static ReturnedValue construct(Managed *m, CallData *callData); }; struct SyntaxErrorCtor: ErrorCtor { + struct Data : ErrorCtor::Data { + Data(ExecutionContext *scope); + }; V4_OBJECT - SyntaxErrorCtor(ExecutionContext *scope); static ReturnedValue construct(Managed *m, CallData *callData); }; struct TypeErrorCtor: ErrorCtor { + struct Data : ErrorCtor::Data { + Data(ExecutionContext *scope); + }; V4_OBJECT - TypeErrorCtor(ExecutionContext *scope); static ReturnedValue construct(Managed *m, CallData *callData); }; struct URIErrorCtor: ErrorCtor { + struct Data : ErrorCtor::Data { + Data(ExecutionContext *scope); + }; V4_OBJECT - URIErrorCtor(ExecutionContext *scope); static ReturnedValue construct(Managed *m, CallData *callData); }; |