diff options
| author | Ahmad Samir <a.samirh78@gmail.com> | 2023-05-23 23:33:54 +0300 |
|---|---|---|
| committer | Ahmad Samir <a.samirh78@gmail.com> | 2023-06-06 01:23:01 +0300 |
| commit | 845b5d63bf3e4f224676d6f7499a46ff686874fe (patch) | |
| tree | 039647a8e4b9d86cd165fa36eee5f360f25b8e3d /src/corelib/tools/qcommandlineparser.cpp | |
| parent | 9cb08c4c0de1685551c18e3b7958a00afa2a4c6a (diff) | |
Moc: assert size of registered strings list is within INT_MAX range
Assert generator.strings.size() < INT_MAX after all strings have been
registered.
Parts of the public API, e.g. QMetaMethod::methodIndex and similar
functions return int, and other parts of the code expect int values, at
least for Qt6 this can't be changed, so use qsizetype internally and
assert the values fit in an int.
Change-Id: Ib226e9c19a578bbeaeb9bb767d756a9569fe57b3
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qcommandlineparser.cpp')
0 files changed, 0 insertions, 0 deletions
