Don't use the QRegExp methods that modify the object [qmake]
authorThiago Macieira <thiago.macieira@intel.com>
Fri, 20 Apr 2012 12:59:30 +0000 (14:59 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 23 Apr 2012 17:20:19 +0000 (19:20 +0200)
commitfd63acdc8339db18521867b183ef3dcc1cefb5ef
treead2964cc98a00ce4ea887f2f82b45f267d84522b
parent3da8a33a62219bb6fd1bb46e253e151f1bc8a3bd
Don't use the QRegExp methods that modify the object [qmake]

QRegExp matching methods modify the object, which we don't want to. In
particular, when we receive a QRegExp from the user or we store in a
context that might require thread-safety, make sure we make a copy
before using it.

QRegularExpression has no such shortcoming.

Task-number: QTBUG-25064
Change-Id: I6b2d2530238a7e04b44859664a2962f2f466ee30
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
qmake/project.cpp