Commit c1623a0d authored by Thiago Macieira's avatar Thiago Macieira Committed by Qt by Nokia
Browse files

Don't use the QRegExp methods that modify the object


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: I2c4d5f4b60d6b3569568103cd7107cd2adaa3ae8
Reviewed-by: default avatarGiuseppe D'Angelo <dangelog@gmail.com>
Reviewed-by: default avatarLars Knoll <lars.knoll@nokia.com>
parent c18f589a
Branches
Tags
No related merge requests found
Showing with 26 additions and 26 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment