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:
Tomi Korpipaa 2025-07-09 12:46:53 +03:00
parent 1499c04fa7
commit c955907133
1 changed files with 1 additions and 1 deletions

View File

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