diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2024-03-08 11:23:10 +0100 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2024-03-14 06:35:42 +0000 |
| commit | ef7b641a3cf267e256468f9a6269a9bcf7656aa9 (patch) | |
| tree | 0faa3fb1fc8217302fed460ba6a861a68d7c60e0 /src/network/access/qrestreply.cpp | |
| parent | 670810787318df8a80b2197b49448c18a78bb7ed (diff) | |
QTest::qWaitFor: scope a variable tighter
When fa296ee1dcf4c16fb6f242cf08949485e499fec3 ported this function
from int timeout to QDeadlineTimer, the need to keep this variable
outside the do-while so it could be checked in the loop exit condition
fell away.
Moving the definition of the variable to the first (and only)
assignment makes the code clearer and the variable a constant.
Amends fa296ee1dcf4c16fb6f242cf08949485e499fec3.
Pick-to: 6.7
Change-Id: I7a0fe01dc68ff140beeb0e76b141c84d4bd28458
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
Diffstat (limited to 'src/network/access/qrestreply.cpp')
0 files changed, 0 insertions, 0 deletions
