using qAsConst
This commit is contained in:
parent
9d515ba68e
commit
cc21fec436
|
@ -637,7 +637,7 @@ void qskItemUpdateRecursive( QQuickItem* item )
|
||||||
|
|
||||||
static const QQuickPointerTouchEvent* qskPointerPressEvent( const QQuickWindowPrivate* wd )
|
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() )
|
if ( auto touchEvent = event->asPointerTouchEvent() )
|
||||||
{
|
{
|
||||||
|
|
|
@ -263,7 +263,7 @@ void QskSkinlet::updateNode( QskSkinnable* skinnable, QSGNode* parentNode ) cons
|
||||||
replaceChildNode( DebugRole, parentNode, oldNode, newNode );
|
replaceChildNode( DebugRole, parentNode, oldNode, newNode );
|
||||||
}
|
}
|
||||||
|
|
||||||
for ( const auto nodeRole : m_data->nodeRoles )
|
for ( const auto nodeRole : qAsConst( m_data->nodeRoles ) )
|
||||||
{
|
{
|
||||||
Q_ASSERT( nodeRole < FirstReservedRole );
|
Q_ASSERT( nodeRole < FirstReservedRole );
|
||||||
|
|
||||||
|
|
|
@ -376,7 +376,7 @@ QSizeF QskStackBox::layoutSizeHint(
|
||||||
qreal w = -1.0;
|
qreal w = -1.0;
|
||||||
qreal h = -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
|
We ignore the retainSizeWhenVisible flag and include all
|
||||||
|
|
Loading…
Reference in New Issue