aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4stringobject_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4stringobject_p.h')
-rw-r--r--src/qml/jsruntime/qv4stringobject_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4stringobject_p.h b/src/qml/jsruntime/qv4stringobject_p.h
index cf489eb05c..6d2ccce641 100644
--- a/src/qml/jsruntime/qv4stringobject_p.h
+++ b/src/qml/jsruntime/qv4stringobject_p.h
@@ -54,6 +54,7 @@ struct StringObject: Object {
Value value;
mutable Property tmpProperty;
+ StringObject(InternalClass *ic);
StringObject(ExecutionEngine *engine, const Value &value);
Property *getIndex(uint index) const;
@@ -78,7 +79,7 @@ protected:
struct StringPrototype: StringObject
{
- StringPrototype(ExecutionEngine *engine): StringObject(engine, Value::fromString(engine, QString())) {}
+ StringPrototype(InternalClass *ic): StringObject(ic) {}
void init(ExecutionEngine *engine, const Value &ctor);
static Value method_toString(SimpleCallContext *context);