diff options
author | Lars Knoll <lars.knoll@digia.com> | 2014-05-09 14:14:02 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2014-07-22 13:49:18 +0200 |
commit | 0fd24cf96e79bea3fb625563ddd3ce6f1ca8bd4b (patch) | |
tree | 6dc96a61c65b8c6ecf1c2f362510630af56e2d60 /src/qml/jsruntime/qv4stringobject_p.h | |
parent | dba56a752c932670c0e9461f106d2bc084276b6f (diff) |
Convert most simple objects to the new constructor scheme
Change-Id: I90042037bc0555771bd98233977c7d2b735bb718
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4stringobject_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4stringobject_p.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/qml/jsruntime/qv4stringobject_p.h b/src/qml/jsruntime/qv4stringobject_p.h index 6656e297a5..5cddec0edc 100644 --- a/src/qml/jsruntime/qv4stringobject_p.h +++ b/src/qml/jsruntime/qv4stringobject_p.h @@ -51,6 +51,8 @@ namespace QV4 { struct StringObject: Object { struct Data : Object::Data { + Data(ExecutionEngine *engine, const ValueRef value); + Data(InternalClass *ic); Value value; // ### get rid of tmpProperty mutable Property tmpProperty; @@ -62,14 +64,12 @@ struct StringObject: Object { V4_OBJECT Q_MANAGED_TYPE(StringObject) - StringObject(ExecutionEngine *engine, const ValueRef value); Property *getIndex(uint index) const; static bool deleteIndexedProperty(Managed *m, uint index); protected: - StringObject(InternalClass *ic); static void advanceIterator(Managed *m, ObjectIterator *it, String *&name, uint *index, Property *p, PropertyAttributes *attrs); static void markObjects(Managed *that, ExecutionEngine *e); }; @@ -87,7 +87,6 @@ struct StringCtor: FunctionObject struct StringPrototype: StringObject { - StringPrototype(InternalClass *ic): StringObject(ic) {} void init(ExecutionEngine *engine, Object *ctor); static ReturnedValue method_toString(CallContext *context); |