summaryrefslogtreecommitdiffstats
path: root/sync.profile
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2022-02-01 15:17:10 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2022-02-10 19:20:59 +0100
commit9030ffdffb612f37f498065d04cd6b33bf930669 (patch)
tree61c0f2d1e0c848030ec627fa7710b61ad5390d78 /sync.profile
parent9a0cfaf78df085fc804aab5a512c02e74d141255 (diff)
Use qScopeGuard() to take care of post-test tidy-up
Doing the tidy-up after the last check has the problem that it gets skipped if any check fails, as the premature return skips the tidy-up. In the process, added the missing tidy-up to prematureExec(). Repackage the code for one tidy-up as a named lambda so that the duplicate can share it with the scope guard. Made some existing scope guards const, while I was about it, so that the one that isn't - because it gets dismiss()ed - stand out. Change-Id: I96d6834d5d7675f15018169a7093b0211db6f8a9 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'sync.profile')
0 files changed, 0 insertions, 0 deletions