summaryrefslogtreecommitdiffstats
path: root/src/v4/qv4dateobject.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-02-14 14:07:57 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2013-02-14 14:57:00 +0100
commit1056456cb580d6eed1c6344c4114695ef315d7fd (patch)
tree4dbf02b41be95b452fde4df57ac4a39920594d9d /src/v4/qv4dateobject.h
parentbed14ea2680d121f0cd575d5fc1138bee1b7045a (diff)
Move call/construct over into the new vtable.
Change-Id: I4f58a1fac25440695bdc62a49adb51a887616a5c Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/v4/qv4dateobject.h')
-rw-r--r--src/v4/qv4dateobject.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/v4/qv4dateobject.h b/src/v4/qv4dateobject.h
index b4916ecd..946240ec 100644
--- a/src/v4/qv4dateobject.h
+++ b/src/v4/qv4dateobject.h
@@ -59,8 +59,11 @@ struct DateCtor: FunctionObject
{
DateCtor(ExecutionContext *scope);
- virtual Value construct(ExecutionContext *ctx, Value *args, int argc);
- virtual Value call(ExecutionContext *ctx, Value, Value *, int);
+ static Value construct(Managed *, ExecutionContext *context, Value *args, int argc);
+ static Value call(Managed *that, ExecutionContext *, const Value &, Value *, int);
+
+protected:
+ static const ManagedVTable static_vtbl;
};
struct DatePrototype: DateObject