Details
-
Task
-
Resolution: Done
-
P3: Somewhat important
-
None
-
None
-
ffc71a977f4bef2872c5c93ddd4db7ebaee8e356
Description
Quoting Thiago in https://codereview.qt-project.org/#change,24080
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.