diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2022-10-17 10:35:45 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2022-10-31 15:10:52 +0200 |
commit | ab7f354df2d4381a4bf9aaa7e1f8d89c076d3806 (patch) | |
tree | 816a815c7c571116034752c1f0bd6dd4707398ca /src/qml/qml/qqmlpropertycache_p.h | |
parent | 705659eaaf47af72eeb5f5c742e18a5c665a76eb (diff) |
QHashedStringRef: assert that strings have at most INT_MAX size
That's a sane limitation for any use case of this class. Moreover,
explicitly cast length to int in the constructors.
As a drive-by, pass QLatin1String by value, and use the nowadays
preferred QLatin1StringView name.
Task-number: QTBUG-105055
Change-Id: I2fa406ec6167eb80782bb39e0cfacc3c5712517c
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlpropertycache_p.h')
0 files changed, 0 insertions, 0 deletions