diff options
author | Marc Mutz <[email protected]> | 2025-07-14 15:19:56 +0200 |
---|---|---|
committer | Marc Mutz <[email protected]> | 2025-07-14 19:14:56 +0000 |
commit | 794373038952b4903b2671ed81b7ad71ad5ba122 (patch) | |
tree | da1e906bd067b95b6d6f51ab2d8d596e46e93dcc /doc/src/snippets/code/src_sql_kernel_qsqlindex.cpp | |
parent | 8c626ad667ef50a610acc04403a908fbd068a654 (diff) |
Simplify the code by using QScopeGuard. In particular, this makes
clear what "reset()" was supposed to do: dismiss.
Every Qt developer knows the semantics of QScopeGuard, but this custom
class has to be learned by every reader anew.
As a drive-by, fix the spacing inside parentheses.
Amends the start of the public history.
Pick-to: 6.10 6.9 6.8 6.5
Change-Id: I20b80fe551951a5aba01a8996c4934b574d34fac
Reviewed-by: MÃ¥rten Nordheim <[email protected]>
Diffstat (limited to 'doc/src/snippets/code/src_sql_kernel_qsqlindex.cpp')
0 files changed, 0 insertions, 0 deletions