Skip to content
Permalink
Browse files

Remove Q_FOREACH from modeltest

  • Loading branch information
m-kuhn committed Apr 5, 2019
1 parent 9bb6c23 commit 31981123d495a2ac7e07fa58b36b36d6aaf6c2e9
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/qt_modeltest/dynamictreemodel.cpp
@@ -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++ )
{
@@ -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 );
}

0 comments on commit 3198112

Please sign in to comment.
You can’t perform that action at this time.