using qAsConst

This commit is contained in:
Uwe Rathmann 2022-03-24 08:41:11 +01:00
parent 9d515ba68e
commit cc21fec436
3 changed files with 3 additions and 3 deletions

View File

@ -637,7 +637,7 @@ void qskItemUpdateRecursive( QQuickItem* item )
static const QQuickPointerTouchEvent* qskPointerPressEvent( const QQuickWindowPrivate* wd )
{
for ( const auto event : wd->pointerEventInstances )
for ( const auto event : qAsConst( wd->pointerEventInstances ) )
{
if ( auto touchEvent = event->asPointerTouchEvent() )
{

View File

@ -263,7 +263,7 @@ void QskSkinlet::updateNode( QskSkinnable* skinnable, QSGNode* parentNode ) cons
replaceChildNode( DebugRole, parentNode, oldNode, newNode );
}
for ( const auto nodeRole : m_data->nodeRoles )
for ( const auto nodeRole : qAsConst( m_data->nodeRoles ) )
{
Q_ASSERT( nodeRole < FirstReservedRole );

View File

@ -376,7 +376,7 @@ QSizeF QskStackBox::layoutSizeHint(
qreal w = -1.0;
qreal h = -1.0;
for ( const auto item : m_data->items )
for ( const auto item : qAsConst( m_data->items ) )
{
/*
We ignore the retainSizeWhenVisible flag and include all