78a8e561b2
Quite some code in Qt takes a copy of a QRegularExpression and then changes something on it (e.g. the case sensitivity) based on some other criteria: QRegularExpression copy = orig; if (cond) copy.setPatternOptions(copy.patternOptions() | CaseInsensitive); use(copy); This pattern can be found in QAIM, QString-related classes, and so on. The "problem" is that if the attempted modification is a no-op, we'd still invalidate the copy object (by detaching). Even if no detaches are involved, setting the same pattern or options on a QRE object shouldn't require a relatively expensive pattern recompile. In summary: don't detach/mark a QRE object as dirty if a setter didn't actually do a modification. Change-Id: Iae0ab4a5e443e7285a83d3d7e0f1dcfd66e8d51d Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> |
||
---|---|---|
.. | ||
3rdparty | ||
android | ||
concurrent | ||
corelib | ||
dbus | ||
entrypoint | ||
gui | ||
network | ||
opengl | ||
openglwidgets | ||
platformsupport | ||
plugins | ||
printsupport | ||
sql | ||
testlib | ||
tools | ||
widgets | ||
xml | ||
CMakeLists.txt |