Remove redundant static_cast from QVariantAnimation

QVariant::convert accepts int as an argument, there was no need to cast.

Change-Id: I774c9567972860d887e17acb91ec332ffcebd9d5
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
bb10
Jędrzej Nowacki 2014-07-16 13:59:59 +02:00
parent 5c275b2751
commit 9f5f3bcbc1
1 changed files with 3 additions and 3 deletions

View File

@ -206,11 +206,11 @@ void QVariantAnimationPrivate::convertValues(int t)
//this ensures that all the keyValues are of type t
for (int i = 0; i < keyValues.count(); ++i) {
QVariantAnimation::KeyValue &pair = keyValues[i];
pair.second.convert(static_cast<QVariant::Type>(t));
pair.second.convert(t);
}
//we also need update to the current interval if needed
currentInterval.start.second.convert(static_cast<QVariant::Type>(t));
currentInterval.end.second.convert(static_cast<QVariant::Type>(t));
currentInterval.start.second.convert(t);
currentInterval.end.second.convert(t);
//... and the interpolator
updateInterpolator();