Skip to content

Commit

Permalink
Remove Q_FOREACH from modeltest
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Apr 5, 2019
1 parent 9bb6c23 commit 3198112
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/qt_modeltest/dynamictreemodel.cpp
Expand Up @@ -255,7 +255,7 @@ void ModelMoveCommand::doCommand()

for ( int column = 0; column < m_numCols; ++column )
{
QList<qint64> l = m_model->m_childItems.value( srcParent.internalId() )[column].mid( m_startRow, m_endRow - m_startRow + 1 );
const QList<qint64> l = m_model->m_childItems.value( srcParent.internalId() )[column].mid( m_startRow, m_endRow - m_startRow + 1 );

for ( int i = m_startRow; i <= m_endRow ; i++ )
{
Expand All @@ -272,7 +272,7 @@ void ModelMoveCommand::doCommand()
d = m_destRow - ( m_endRow - m_startRow ) + 1;
}

Q_FOREACH ( const qint64 id, l )
for ( const qint64 id : l )
{
m_model->m_childItems[destParent.internalId()][column].insert( d++, id );
}
Expand Down

0 comments on commit 3198112

Please sign in to comment.