summaryrefslogtreecommitdiffstats
path: root/config.tests/unix/gstreamer
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2016-10-27 09:42:56 +0200
committerLars Knoll <lars.knoll@qt.io>2016-11-15 13:59:51 +0000
commitc442244907a7246ee1e0cff3827e874d50d6da11 (patch)
treece122fb6d3f8880f04d0dc1c62f2d8a8c2eea0c0 /config.tests/unix/gstreamer
parent01c3565d3e484af0451060cdbdfc42f5d10dfb9a (diff)
Fixes for findVersionDirectivePosition()
The old code was wrong as it used QString::fromUtf8() to convert the char * array to a QString. This could lead to wrong positions when trying to find the #version directive, as any valid utf8 sequence in a comment before could have lead to wrong offsets compared to the 8 bit data. Fix this and optimize the code at the same time to avoid creating a copy of the data and using QRegularExpression. Also fixes building Qt with -no-feature-regularexpression Change-Id: I2d84875ef59b3a0fb4d8b069bf56f4372c57ccdc Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'config.tests/unix/gstreamer')
0 files changed, 0 insertions, 0 deletions