summaryrefslogtreecommitdiffstats
path: root/tests/auto/network
diff options
context:
space:
mode:
authorZou Ya <zouya@uniontech.com>2020-11-24 19:54:09 +0800
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-11-26 14:43:20 +0100
commit5b93f6cae692363ab03b0c9b0ae8efd0bb4ef499 (patch)
treec3f85874099bc91c0b411ef08f54abcd1a7dc1c4 /tests/auto/network
parent6cb36d825d365988ea7a601218bdd3a329290469 (diff)
Reduce the scope of variables in exec() and fetchNext()
The scope of the variable 'currBind' can be reduced if the variable 'r' is not 0. So declare the variable when the variable 'r' is 0. The local variable 'i' shadows outer variable in fetchNext(), so move it to the front of switch. Don't declare 'res' until we need and initialize it. Change-Id: Idfb220b96cfbcd4088fd7858ed9392d0a3e10aea Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/network')
0 files changed, 0 insertions, 0 deletions