summaryrefslogtreecommitdiffstats
path: root/src/tools/bootstrap
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2020-05-12 10:46:21 +0200
committerMarc Mutz <marc.mutz@kdab.com>2020-05-13 19:30:26 +0000
commitf437c8c5f9772a0d73c8772b64fea6133d43bcc7 (patch)
tree3ab3bf0d41f446f1fdd35fe6dbd20cd497c0cda4 /src/tools/bootstrap
parentc59665b0ec8cda1b00852f5f90fcad7fc88d1638 (diff)
QUrlIdna: port containsProhibitedOutput() to QStringIterator
Also Extract Method isProhibitedOutput(), which, in order to preserve history, is placed in the unnamed namespace and violates the indentation rules. But this code is delicate enough to be left undisturbed. At least for now. By said Extract Method, we can static_assert on the invalidity of the QStringIterator::next() argument, which we assume will be rejected, so that we continue to reject malformed surrogate pairs. Also fix a comment that suggested the function would actively remove ("strip") malformed content, when in fact it only detects it. Change-Id: I4185cbac71fb147e2f2036dbaf052af20bd1003f Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/tools/bootstrap')
0 files changed, 0 insertions, 0 deletions