Use qsizetype instead of int
In Qt 6, the {QString,QByteArray}::indexOf() method returns qsizetype.
Similarly, the {QString,QByteArray}::mid() method takes qsizetype as
its arguments.
As a drive-by: use constexpr for a couple of constants.
Pick-to: 6.9 6.8 6.5
Change-Id: I04ca087c12999de60b3c914796c273d388cdbb8a
Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
| commit | bf31d22b9fc365fceb92478418b5cc0e624f7816 |
| parent | 429803fe0c848d7dbe3a607d7c683ed5bf983441 |
| author | Ivan Solovev <ivan.solovev@qt.io> |
| committer | Ivan Solovev <ivan.solovev@qt.io> |
| commit time | Fri, 25 Apr 2025 14:10:46 +0200 |