avoid copying of new animators
This commit is contained in:
parent
8473f5c2a1
commit
de158d71b5
@ -211,11 +211,7 @@ void QskHintAnimatorTable::start( QskControl* control,
|
|||||||
qskAnimatorGuard->registerTable( this );
|
qskAnimatorGuard->registerTable( this );
|
||||||
}
|
}
|
||||||
|
|
||||||
auto it = m_data->map.find( aspect );
|
auto& animator = m_data->map[ aspect ];
|
||||||
if ( it == m_data->map.end() )
|
|
||||||
it = m_data->map.emplace( aspect, QskHintAnimator() ).first;
|
|
||||||
|
|
||||||
auto& animator = it->second;
|
|
||||||
|
|
||||||
animator.setAspect( aspect );
|
animator.setAspect( aspect );
|
||||||
animator.setStartValue( from );
|
animator.setStartValue( from );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user