diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2022-09-17 10:48:18 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2022-09-22 11:07:20 +0200 |
| commit | 3cb00e415d72f466a1f235490cfae029169ce7ae (patch) | |
| tree | d79ff8870e205ea1275b00916ab15a2f0db481d5 /src/corelib/global/qnumeric.cpp | |
| parent | dccca4ab33be7977c1b640d793257203d121e7d0 (diff) | |
DRY qCompress/qUncompress: introduce CompressedSizeHint_t
... and use it to remove the associated magic number 4 from the code
base.
As a drive-by, replace a naked qWarning() with the existing
invalidCompressedData() helper function, and a C-style cast with
reinterpret_cast.
Pick-to: 6.4 6.3 6.2
Task-number: QTBUG-106542
Change-Id: I35004757e01bfc0747f7cc65bdf6eb243225caad
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/corelib/global/qnumeric.cpp')
0 files changed, 0 insertions, 0 deletions
