aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4regexp_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@theqtcompany.com>2014-11-10 21:27:52 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2014-11-12 12:13:47 +0100
commit345a5ee67bf80f7c18869fe080bf7dd7cf4a0d90 (patch)
tree3d4a64aca5d5215a4e3574e3c92f875fe52f90dd /src/qml/jsruntime/qv4regexp_p.h
parent60f3c23f524eaed795dd4ce58722cdf923ba6a51 (diff)
Use heap objects in the remaining managed objects
Change-Id: Id6dc6e34113a287a40e0122dfbdf977f0fc1f3b3 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4regexp_p.h')
-rw-r--r--src/qml/jsruntime/qv4regexp_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4regexp_p.h b/src/qml/jsruntime/qv4regexp_p.h
index 1ac85b4ef3..a7827542ef 100644
--- a/src/qml/jsruntime/qv4regexp_p.h
+++ b/src/qml/jsruntime/qv4regexp_p.h
@@ -70,6 +70,8 @@ struct RegExp : Base {
int subPatternCount;
bool ignoreCase;
bool multiLine;
+
+ int captureCount() const { return subPatternCount + 1; }
};
}