summaryrefslogtreecommitdiff
path: root/src/qml/jsruntime/qv4regexpobject.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2014-03-17 12:45:41 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-18 09:05:57 +0100
commitc3fbec3ab955eb2b771a6a54d2910d25a1c7277c (patch)
treebdbf3537617da5761bef9e6dbf829a212e780ec8 /src/qml/jsruntime/qv4regexpobject.cpp
parent09f3cfee8d5e34b5f7058586c52c3fc36d295d93 (diff)
downloadqtdeclarative-c3fbec3ab955eb2b771a6a54d2910d25a1c7277c.tar.gz
Small optimization to RegExp
Also add markObjects() calls to all the identifiers we keep around in the engine. It's probably pure luck this hasn't caused any issues until now. Change-Id: Ie31d19793efa53867e4e240ba548070dcde32ec1 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4regexpobject.cpp')
-rw-r--r--src/qml/jsruntime/qv4regexpobject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4regexpobject.cpp b/src/qml/jsruntime/qv4regexpobject.cpp
index daf85c0f7d..956d1c594e 100644
--- a/src/qml/jsruntime/qv4regexpobject.cpp
+++ b/src/qml/jsruntime/qv4regexpobject.cpp
@@ -243,7 +243,7 @@ RegExpCtor::RegExpCtor(ExecutionContext *scope)
void RegExpCtor::clearLastMatch()
{
lastMatch = Primitive::nullValue();
- lastInput = engine()->newIdentifier(QString());
+ lastInput = engine()->id_empty;
lastMatchStart = 0;
lastMatchEnd = 0;
}