diff options
author | Marc Mutz <[email protected]> | 2025-07-11 14:47:53 +0200 |
---|---|---|
committer | Marc Mutz <[email protected]> | 2025-07-12 22:30:48 +0200 |
commit | d966a65cc8dcff5dfd0e9b72853de1f4d144ba18 (patch) | |
tree | abb102eb64ede862817ca8c49597f51e123f0363 /tests/baselineserver/shared/baselineprotocol.cpp | |
parent | 50f1288946cae0ad8a66d5003fc4bb8138d9b6dd (diff) |
tst_QTextStream: scope a variable closer (and init it)
Move the declaration of 'value' to just after the first use, in the
loop, and give it an initial value that doesn't appear in the file.
This improves test coverage by checking that the variable was indeed
overwritten by the failed op>> call, and doesn't just accidentally
have the value zero.
Amends the start of the public history.
Pick-to: 6.10 6.9 6.8 6.5
Task-number: QTBUG-138435
Change-Id: I4591d105dd2d991f75f0086c9706ebe9be832251
Reviewed-by: Thiago Macieira <[email protected]>
Diffstat (limited to 'tests/baselineserver/shared/baselineprotocol.cpp')
0 files changed, 0 insertions, 0 deletions