diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2022-09-15 15:29:34 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2022-09-23 20:08:56 +0200 |
| commit | 6472616e6c98efe7b983ce2f1677dcada9c50321 (patch) | |
| tree | a4cc58194464bfa4596260b92404ee3ea9cd29d2 /src/gui/platform/unix/qunixnativeinterface.cpp | |
| parent | ce4c26c8d16fbc9fdafd8325b8a0b32bacd8cd93 (diff) | |
qUncompress(): introduce more functions a la invalidCompressedData()
... and use them consistently instead of naked qWarning()s.
As a drive-by, fix the warnings we generate on failures, which
all-too-often was "invalid data".
Code for minimal size by DRYing what the compiler can't, and using
Q_DECL_COLD_FUNCTION to avoid excessive inlining.
Left the one qWarning() in qCompress(), for now, because that would
have changed the return value from an empty to a null byte array.
Move invalidCompressedData() to where the others are defined, too,
because it's required by a follow-up commit.
Pick-to: 6.4 6.3 6.2
Task-number: QTBUG-104972
Change-Id: Ia43aa315960b06530e98c1d7525ccf0e7f71bb5c
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/gui/platform/unix/qunixnativeinterface.cpp')
0 files changed, 0 insertions, 0 deletions
