diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2022-09-07 16:47:49 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2022-09-08 23:57:26 +0200 |
| commit | b84f4be6b78feec617b8d97b00a8231c15d83f67 (patch) | |
| tree | 9a6f1ff2110f1be4757180579236862d6fd8ac77 /src/plugins/platforms/wasm/qwasmclipboard.cpp | |
| parent | 95e315a66e4cc6bcafc442b6e5d5377b82ba8295 (diff) | |
qUncompress: use existing MaxByteArraySize
... instead of rolling your own.
Since MaxByteArraySize already adjusts for the trailing NUL byte in
QByteArray, the odd 'len >= max' now become a more natural 'len >
max'.
Rename the limit variable to MaxDecompressedSize, which is more
specific, and remove comments that now look out of place.
As a drive-by, re-arrange an else branch that, had it stayed, would
have required an adjusted if branch to require braces around a
single-line statement.
Pick-to: 6.4 6.3 6.2
Task-number: QTBUG-104972
Change-Id: I6805dab8391b7e51db30d99b1b8968434062d12d
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmclipboard.cpp')
0 files changed, 0 insertions, 0 deletions
