QRegExp: fix crash
authorGiuseppe D'Angelo <dangelog@gmail.com>
Sun, 26 Feb 2012 01:45:53 +0000 (01:45 +0000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 27 Feb 2012 12:54:24 +0000 (13:54 +0100)
commit136c2bf18446f2bbe7052d638c29edbc0b8ef6bc
tree7d583476ddf4fc65ddaa402d5ce541fac42c90c1
parent568e714fdf9d3243bfc684a5650332e432e70461
QRegExp: fix crash

Fixes a crash when invoking various QRegExp methods on an object
*before* doing any match. For instance fixes:
  QRegExp re;
  re.matchedLength(); // crash

Task-number: QTBUG-23352
Change-Id: I9c239ff790a139c7820ef1aeced89d31320ae6b0
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/tools/qregexp.cpp
tests/auto/corelib/tools/qregexp/tst_qregexp.cpp