summaryrefslogtreecommitdiff
path: root/src/qml/jsruntime/qv4regexpobject_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2014-05-09 12:15:23 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2014-07-22 13:49:18 +0200
commitdba56a752c932670c0e9461f106d2bc084276b6f (patch)
tree3a669663fa85dd3d61a83c29e8961b70ac53f046 /src/qml/jsruntime/qv4regexpobject_p.h
parent00fa9049112385f65ccdcad02b8712a32626d20c (diff)
downloadqtdeclarative-dba56a752c932670c0e9461f106d2bc084276b6f.tar.gz
Convert remaining FunctionObject's to new constructor scheme
Change-Id: I440d5b128d0ee28566ebfa82c2505a4bd97bba6b Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4regexpobject_p.h')
-rw-r--r--src/qml/jsruntime/qv4regexpobject_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4regexpobject_p.h b/src/qml/jsruntime/qv4regexpobject_p.h
index 90ff8caf7d..238ce8a759 100644
--- a/src/qml/jsruntime/qv4regexpobject_p.h
+++ b/src/qml/jsruntime/qv4regexpobject_p.h
@@ -110,10 +110,12 @@ protected:
struct RegExpCtor: FunctionObject
{
struct Data : FunctionObject::Data {
+ Data(ExecutionContext *scope);
Value lastMatch;
StringValue lastInput;
int lastMatchStart;
int lastMatchEnd;
+ void clearLastMatch();
};
struct {
Value lastMatch;
@@ -123,13 +125,11 @@ struct RegExpCtor: FunctionObject
} __data;
V4_OBJECT
- RegExpCtor(ExecutionContext *scope);
Value lastMatch() { return d()->lastMatch; }
StringValue lastInput() { return d()->lastInput; }
int lastMatchStart() { return d()->lastMatchStart; }
int lastMatchEnd() { return d()->lastMatchEnd; }
- void clearLastMatch();
static ReturnedValue construct(Managed *m, CallData *callData);
static ReturnedValue call(Managed *that, CallData *callData);