avoid copying of new animators

This commit is contained in:
Uwe Rathmann 2018-12-20 14:38:01 +01:00
parent 8473f5c2a1
commit de158d71b5

View File

@ -211,11 +211,7 @@ void QskHintAnimatorTable::start( QskControl* control,
qskAnimatorGuard->registerTable( this );
}
auto it = m_data->map.find( aspect );
if ( it == m_data->map.end() )
it = m_data->map.emplace( aspect, QskHintAnimator() ).first;
auto& animator = it->second;
auto& animator = m_data->map[ aspect ];
animator.setAspect( aspect );
animator.setStartValue( from );