diff options
author | Charles Yin <charles.yin@nokia.com> | 2012-05-18 12:04:17 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-23 05:28:00 +0200 |
commit | c3a31f888c943920a5e41e648de0fcdc7b8aecf0 (patch) | |
tree | 1fbf2e5e92b99f4a8faeb2abadc3eca22b6c9194 /src/qml/animations | |
parent | 14ac380da38388829738910e96dcc5dbb35a448c (diff) |
Only preallocate 1 change listener per animation instance
In most cases, only one animation change listener is added to animation instance,
so change QPODVector's Increment parameter from 4 to 1 can save 24 bytes (8 bytes for each listener) per animation instance.
Change-Id: Iaf50016899963689f2bf84c3dd14fcd05c306d21
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Diffstat (limited to 'src/qml/animations')
-rw-r--r-- | src/qml/animations/qabstractanimationjob_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/animations/qabstractanimationjob_p.h b/src/qml/animations/qabstractanimationjob_p.h index e889a12aed..06c4857c86 100644 --- a/src/qml/animations/qabstractanimationjob_p.h +++ b/src/qml/animations/qabstractanimationjob_p.h @@ -150,7 +150,7 @@ protected: QAbstractAnimationJob::ChangeTypes types; bool operator==(const ChangeListener &other) const { return listener == other.listener && types == other.types; } }; - QPODVector<ChangeListener,4> changeListeners; + QPODVector<ChangeListener,1> changeListeners; QAbstractAnimationJob *m_nextSibling; QAbstractAnimationJob *m_previousSibling; |