Remove unnecessary type conversion
Change-Id: Ic362f6647d8eaf2004d3bd5e1c6d6411cfb31d86 Reviewed-by: Lars Knoll <lars.knoll@qt.io>bb10
parent
c3804ba061
commit
6519bcf85d
|
|
@ -439,8 +439,8 @@ void QVariantAnimation::registerInterpolator(QVariantAnimation::Interpolator fun
|
|||
// to continue causes the app to crash on exit with a SEGV
|
||||
if (interpolators) {
|
||||
const auto locker = qt_scoped_lock(registeredInterpolatorsMutex);
|
||||
if (int(interpolationType) >= interpolators->count())
|
||||
interpolators->resize(int(interpolationType) + 1);
|
||||
if (interpolationType >= interpolators->count())
|
||||
interpolators->resize(interpolationType + 1);
|
||||
interpolators->replace(interpolationType, func);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue