diff options
author | Marc Mutz <marc.mutz@qt.io> | 2021-11-22 08:42:49 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2021-11-26 18:28:50 +0100 |
commit | f8ab1f0576d9f37638256f6811a578df431d19d8 (patch) | |
tree | 97a855d9c88ba6876204b2889bcbaab5a31febb3 /cmake/QtTestHelpers.cmake | |
parent | ed343669f7c219b89449762cce086cb036a9a8f2 (diff) |
qmake: use even fewer magic numbers
De-unroll the loop over the "interesting" keyword ignore comments by
using the existing array of their names. Replace magic numbers by
strlen() calls. Use local starts_with() instead of strncmp() when
comparing with fixed-size constant string literals, to avoid repeating
the fixed string's lengths for the third argument of strncmp().
Task-number: QTBUG-55458
Change-Id: If458aced382948fb719d984702857fb2171c87ee
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'cmake/QtTestHelpers.cmake')
0 files changed, 0 insertions, 0 deletions