diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2023-12-06 16:36:46 +0100 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2023-12-07 02:46:17 +0100 |
| commit | d6969b76a5281d5dcadc6ef722594d6ba2effd68 (patch) | |
| tree | 7e2dca60de0735adbc76c0c146cfa3f3e68a22b0 /src/gui/doc/snippets/textdocument-css/main.cpp | |
| parent | c851fb2456a87d7b19e7fb9a5a61a3b631970026 (diff) | |
QSpan: don't truncate QSpan::extent
My notes inform me that my intent was for QSpan::extent to be size_t,
for compatibility with both its template argument and
std::span::extent.
So fix it to be size_t instead of qsizetype. While extents that go
beyond numeric_limits<qsizetype>::max() will be unusable in practice,
QSpan doesn't actually allocate memory, so declaring one should be
possible, if only for compatibility with std::span, without getting
into a situation where E != extent.
Pick-to: 6.6
Change-Id: Ic8ae3a1c03801b4a23b7ba56388372cac64f9e5e
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/doc/snippets/textdocument-css/main.cpp')
0 files changed, 0 insertions, 0 deletions
