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-17 19:45:02 +0000 |
commit | aae362e2fe3c0a71dd6d01eaf7f20085506ef7f4 (patch) | |
tree | 57fc11276ce07e950dc0e89161faf4528098b100 /tests/auto/widgets/widgets/qmenu/BLACKLIST | |
parent | 86c5a337e3b123f2e41c8b15b416f39655519acd (diff) |
QDirModel: replace an inefficient QList with QVector
SavedPersistent 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.
Take advantage of rvalue-enabled QVector::push_back(); optimize
element construction by using aggregate initialization.
Change-Id: I4fd88879aa13e6536d59d164b3c33fbc2fead77f
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'tests/auto/widgets/widgets/qmenu/BLACKLIST')
0 files changed, 0 insertions, 0 deletions