aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/qml/jsruntime/qv4stringobject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4stringobject.cpp b/src/qml/jsruntime/qv4stringobject.cpp
index e710e14750..e41c1030b3 100644
--- a/src/qml/jsruntime/qv4stringobject.cpp
+++ b/src/qml/jsruntime/qv4stringobject.cpp
@@ -653,7 +653,7 @@ ReturnedValue StringPrototype::method_padEnd(const FunctionObject *f, const Valu
toFill -= copy;
ch += copy;
}
- *ch = '\0';
+ *ch = QChar::Null;
return v4->newString(padded)->asReturnedValue();
}
@@ -695,7 +695,7 @@ ReturnedValue StringPrototype::method_padStart(const FunctionObject *f, const Va
}
memcpy(ch, original.constData(), oldLength*sizeof(QChar));
ch += oldLength;
- *ch = '\0';
+ *ch = QChar::Null;
return v4->newString(padded)->asReturnedValue();
}