aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/v4/qv4string.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/qml/v4/qv4string.cpp')
-rw-r--r--src/qml/qml/v4/qv4string.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/qml/qml/v4/qv4string.cpp b/src/qml/qml/v4/qv4string.cpp
index 9288afdc74..41682121f0 100644
--- a/src/qml/qml/v4/qv4string.cpp
+++ b/src/qml/qml/v4/qv4string.cpp
@@ -174,6 +174,14 @@ bool String::deleteIndexedProperty(Managed *m, ExecutionContext *ctx, uint index
return false;
}
+String::String(ExecutionEngine *engine, const QString &text)
+ : Managed(engine ? engine->emptyClass : 0), _text(text), stringHash(UINT_MAX), identifier(UINT_MAX)
+{
+ vtbl = &static_vtbl;
+ type = Type_String;
+ subtype = StringType_Unknown;
+}
+
uint String::toUInt(bool *ok) const
{
*ok = true;