summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2012-12-16 20:18:13 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-01-14 10:24:49 +0100
commit0ae529c911fa5dadfa8d8cb666597483c966187e (patch)
tree0910f6687e3bff1fe9bb3905f17d68b4e38aaf4e /tests
parent1df2b9ee2376e132a6bf9596097351f0c79e6b73 (diff)
Avoid a QVector allocation in QRegularExpressionMatchPrivate
Explicitely pass the number of capturing groups for which the offsets should be reserved in the capturedOffsets vector, instead of relying on it adding 1 (for the implicit capturing group #0). In case 0 is passed, don't allocate any space for that vector. This is being used in case of NoMatch match type or failing match (invalid regexp, out of bounds offset, etc.). Change-Id: I0ec7646d5bd53e7a7973177100b163a5e5030307 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions