mirror of https://github.com/qt/qtgraphs.git
Get rid of some clazy warnings in graphs2d/animation folder
Fix "c++11 range-loop might detach Qt container" warnings. Pick-to: 6.9 6.10 Change-Id: If43b44b56d5e096bb787285dfc8d28ec344ea149 Reviewed-by: Jere Tuliniemi <jere.tuliniemi@qt.io>
This commit is contained in:
parent
1499c04fa7
commit
c955907133
|
|
@ -135,7 +135,7 @@ bool QGraphTransition::initialized()
|
|||
|
||||
bool QGraphTransition::contains(QGraphAnimation::GraphAnimationType type)
|
||||
{
|
||||
for (const auto anim : m_animations) {
|
||||
for (const auto anim : std::as_const(m_animations)) {
|
||||
if (anim->animationType() == type)
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue