From 9f5f3bcbc11e69e7f8ad31e2d31f400e7011c0ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Nowacki?= Date: Wed, 16 Jul 2014 13:59:59 +0200 Subject: 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 --- src/corelib/animation/qvariantanimation.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/corelib/animation') diff --git a/src/corelib/animation/qvariantanimation.cpp b/src/corelib/animation/qvariantanimation.cpp index a23a6a7cda..61fe6e8c88 100644 --- a/src/corelib/animation/qvariantanimation.cpp +++ b/src/corelib/animation/qvariantanimation.cpp @@ -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(t)); + pair.second.convert(t); } //we also need update to the current interval if needed - currentInterval.start.second.convert(static_cast(t)); - currentInterval.end.second.convert(static_cast(t)); + currentInterval.start.second.convert(t); + currentInterval.end.second.convert(t); //... and the interpolator updateInterpolator(); -- cgit v1.2.3