diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2022-08-17 17:26:04 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2022-08-21 08:28:51 +0200 |
| commit | a888239cf15fb18034122a06c687526c83dbdaa9 (patch) | |
| tree | fb73c5acfa761ee7f6bc5880d2f413833f94daa1 /src/corelib/io/qdebug.h | |
| parent | bcc32bc1128544cceb41d337ee16bc36c3eb188f (diff) | |
QDebug: port putEscapedString() from int to size_t
All callers of the function pass size_t values, so remove the
impedance mismatch and preserve the value.
Adjust local variable runLength to qsizetype, because with this change
the int variable may now overflow, which would cause infinite looping.
Adjust callers to not perform narrowing conversions.
Pick-to: 6.4 6.3 6.2
Task-number: QTBUG-103525
Change-Id: I2a9d3301118855fc95245a55bf64de6c46fa2f51
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/corelib/io/qdebug.h')
0 files changed, 0 insertions, 0 deletions
