diff options
| author | Marc Mutz <marc.mutz@kdab.com> | 2021-08-11 17:20:23 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@kdab.com> | 2021-08-18 20:31:17 +0000 |
| commit | 93745ef34608024db92c90c8e270e441fc346eda (patch) | |
| tree | f124c2941c1d65f52aae6f8b9e56d91ac4a3ccd1 /src/plugins/sqldrivers/mysql/qsql_mysql.cpp | |
| parent | d3ece0fcc2b1fd60690bf7b6d04ad90c4eb48c0e (diff) | |
QMetaEnum: stop playing ping-pong with *ok
By dropping the clause pointlessly guarding the ranged for loop against
an empty collection, we can reduce the ping-pong being played with the
*ok boolean: Just set it to false at the beginning, and only set it to
true when we reach the success-return.
Pick-to: 6.2
Change-Id: I87365146086aba427b7414e83f077096824ff56f
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/plugins/sqldrivers/mysql/qsql_mysql.cpp')
0 files changed, 0 insertions, 0 deletions
