Remove unnecessary type conversion

Change-Id: Ic362f6647d8eaf2004d3bd5e1c6d6411cfb31d86
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
bb10
Xiao YaoBing 2021-05-25 11:20:50 +08:00
parent c3804ba061
commit 6519bcf85d
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}