diff options
author | Ahmad Samir <a.samirh78@gmail.com> | 2023-05-25 19:22:05 +0300 |
---|---|---|
committer | Ahmad Samir <a.samirh78@gmail.com> | 2023-06-06 01:23:01 +0300 |
commit | 88de6960747aa567c6947913f9e5715cfb972d46 (patch) | |
tree | e75a70bb6cbdb00f16a6f20a28832bd49601700f /src/plugins/platforms/xcb/qxcbnativeinterface.h | |
parent | 2cca2323d3919e4ffd2c447bb7ba69ef5a7c9aaa (diff) |
Moc: check sizes of specific member QLists are within INT_MAX range
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.
As pointed out in code review, not many people will build moc in debug
mode, so asserts aren't that useful here. Instead print error messages
and exit, like is already done in other parts of the code.
Change-Id: Id305165caa996c899f30770a757098fe2f9a96f6
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbnativeinterface.h')
0 files changed, 0 insertions, 0 deletions