Use range-based for loops + fix const correctness

This commit is contained in:
Colin Wallace
2018-04-15 18:17:37 -07:00
committed by Lukas W
parent ae0dd21df3
commit da126bfb5c
4 changed files with 19 additions and 33 deletions

View File

@@ -189,12 +189,11 @@ ControllerConnectionDialog::ControllerConnectionDialog( QWidget * _parent,
m_userController = new ComboBox( m_userGroupBox, "Controller" );
m_userController->setGeometry( 10, 24, 200, 22 );
for( int i = 0; i < Engine::getSong()->controllers().size(); ++i )
for (Controller * c : Engine::getSong()->controllers())
{
Controller * c = Engine::getSong()->controllers().at( i );
m_userController->model()->addItem( c->name() );
}
// Mapping functions
m_mappingBox = new TabWidget( tr( "MAPPING FUNCTION" ), this );