diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2014-08-17 20:44:39 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-06-28 21:10:25 +0000 |
commit | 26281561fec5bf850d32040dc16f5f8b5f1aa58f (patch) | |
tree | 65d23d6128d32507a6cb1ea003096282ab0f3396 /lib | |
parent | dff10573f27aa93650030e2634c5eb3632b3cfdd (diff) |
QGraphicsItemAnimation: don't hold Private::Pair in QList
QGraphicsItemAnimationPrivate::Pair, being a (qreal,qreal) is
larger than a void*, so holding them in a 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 Pair as primitive and holding it in QVector
instead.
Change-Id: I190721f4b0cdeab2efab2d51536f64572cd663df
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions