diff options
| author | Marc Mutz <marc.mutz@kdab.com> | 2015-07-19 11:23:15 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@kdab.com> | 2016-02-08 10:21:51 +0000 |
| commit | 24c0ba13fd7973a5a9007d4bb651efe714a3c518 (patch) | |
| tree | 67ff5384df11197c10bbf35657e662e01f13e2e7 /src/sql/kernel/qsqldatabase.cpp | |
| parent | 3d9ccce7d52a2f0bdbe73e8f6f25dae045bd09ec (diff) | |
QStandardItemModel: avoid premature pessimization
- don't re-evaluate QMap::end() all the time
- don't copy QVariant more than needed
- pass temporary to QVector::append (enabling moves)
- swap instead of copy-assign a vector into place
Change-Id: I7549812dfbb2dbc9a919fa9565397d50141fc2ca
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/sql/kernel/qsqldatabase.cpp')
0 files changed, 0 insertions, 0 deletions
