diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-07-09 21:40:58 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-07-13 10:37:31 +0000 |
commit | 14235ada48d5f3015571102549d56c8cfbcdcccb (patch) | |
tree | fc67a19169543459a93c42f4b937cca26ca4f573 /src/widgets/itemviews/qabstractitemview_p.h | |
parent | 827d1ed633b13719964d82e06195d9df4bd34419 (diff) |
QGraphicsItem: don't hold ExtraStruct in a QList
ExtraStruct is larger than a void*, so holding it in QList
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 in a QVector instead.
Change-Id: I02f2089859c2deccf0e6c451bf80da07893cc3f0
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/widgets/itemviews/qabstractitemview_p.h')
0 files changed, 0 insertions, 0 deletions