diff options
author | Lars Knoll <[email protected]> | 2014-03-17 12:45:41 +0100 |
---|---|---|
committer | The Qt Project <[email protected]> | 2014-03-18 09:05:57 +0100 |
commit | c3fbec3ab955eb2b771a6a54d2910d25a1c7277c (patch) | |
tree | bdbf3537617da5761bef9e6dbf829a212e780ec8 /src/qml/jsruntime/qv4regexpobject.cpp | |
parent | 09f3cfee8d5e34b5f7058586c52c3fc36d295d93 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4regexpobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4regexpobject.cpp | 2 |
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; } |