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. Change-Id: If43b44b56d5e096bb787285dfc8d28ec344ea149 Reviewed-by: Jere Tuliniemi <jere.tuliniemi@qt.io> (cherry picked from commitc955907133) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit94e1fbd640)
This commit is contained in:
parent
7765d66148
commit
6f80b3bb27
|
|
@ -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