summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qpointer.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2015-06-19 13:11:03 +0200
committerMarc Mutz <marc.mutz@kdab.com>2015-07-13 22:27:14 +0000
commita082b41d2cdb72099cd5f6b7636b34836880d150 (patch)
tree40a200dd805ea8739ce64735ff02138efa3045cf /src/corelib/kernel/qpointer.h
parentf5243c0591469dd876acef2fbcbe1837d5bf648a (diff)
QTextEngine: don't hold ItemDecoration in QList
ItemDecoration 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 the type movable and holding in QVector instead. Change-Id: I06d7a77529f7cff2ba503c5e8d6e5df0ad801a21 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com> Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Diffstat (limited to 'src/corelib/kernel/qpointer.h')
0 files changed, 0 insertions, 0 deletions