aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4stringobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4stringobject.cpp')
-rw-r--r--src/qml/jsruntime/qv4stringobject.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4stringobject.cpp b/src/qml/jsruntime/qv4stringobject.cpp
index 97a8941fe1..e9e47c1b52 100644
--- a/src/qml/jsruntime/qv4stringobject.cpp
+++ b/src/qml/jsruntime/qv4stringobject.cpp
@@ -208,7 +208,6 @@ ReturnedValue StringCtor::method_fromCharCode(const FunctionObject *b, const Val
*ch = QChar(argv[i].toUInt16());
++ch;
}
- *ch = 0;
return Encode(b->engine()->newString(str));
}
@@ -235,7 +234,6 @@ ReturnedValue StringCtor::method_fromCodePoint(const FunctionObject *f, const Va
}
++ch;
}
- *ch = 0;
result.truncate(ch - result.constData());
return e->newString(result)->asReturnedValue();
}