diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-06-24 02:04:09 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2016-02-08 22:07:53 +0000 |
commit | b30edc51535c389bdee9f676c4b5003d37242092 (patch) | |
tree | 50719f80ab971cf0da2eea2291a0589d9bde9b4a /src/corelib/io/qfilesystementry.cpp | |
parent | 8a549506464d1356fe9ff63ac0c56ea85cd38e8b (diff) |
QKeySequence: replace an inefficient QList with QVector
QShortcutEntry is larger than a void*, so holding it in QLists
is needlessly inefficient. Worse, the code could come to depend
on the fragile property of (inefficient) QLists that references
to elements therein never are invalidated.
Fix by marking it movable, and holding it in a QVector instead.
Change-Id: I4ab3399a8036827631b7fbdfdc60b4206305e1c9
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qfilesystementry.cpp')
0 files changed, 0 insertions, 0 deletions