Remove qSort from QVariantAnimation

QtAlgorithms is getting deprecated,
see http://www.mail-archive.com/development@qt-project.org/msg01603.html

Change-Id: Ife76c249eb950e976c626acebbe00372ffc70df9
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
Giuseppe D'Angelo 2012-11-02 00:31:35 +01:00 committed by The Qt Project
parent dfa36cd65d
commit ca9d3f5753

View File

@ -620,7 +620,7 @@ void QVariantAnimation::setKeyValues(const KeyValues &keyValues)
{
Q_D(QVariantAnimation);
d->keyValues = keyValues;
qSort(d->keyValues.begin(), d->keyValues.end(), animationValueLessThan);
std::sort(d->keyValues.begin(), d->keyValues.end(), animationValueLessThan);
d->recalculateCurrentInterval(/*force=*/true);
}