mirror of
https://github.com/LMMS/lmms.git
synced 2026-05-10 07:47:16 -04:00
clang-tidy: Apply modernize-loop-convert everywhere (#6481)
Co-authored-by: allejok96 <allejok96@gmail.com> Co-authored-by: Dominic Clark <mrdomclark@gmail.com>
This commit is contained in:
@@ -69,11 +69,10 @@ LadspaControlDialog::LadspaControlDialog( LadspaControls * _ctl ) :
|
||||
|
||||
void LadspaControlDialog::updateEffectView( LadspaControls * _ctl )
|
||||
{
|
||||
QList<QGroupBox *> list = findChildren<QGroupBox *>();
|
||||
for( QList<QGroupBox *>::iterator it = list.begin(); it != list.end();
|
||||
++it )
|
||||
QList<QGroupBox *> groupBoxes = findChildren<QGroupBox *>();
|
||||
for (const auto& groupBox : groupBoxes)
|
||||
{
|
||||
delete *it;
|
||||
delete groupBox;
|
||||
}
|
||||
|
||||
m_effectControls = _ctl;
|
||||
@@ -105,12 +104,11 @@ void LadspaControlDialog::updateEffectView( LadspaControls * _ctl )
|
||||
grouper->setLayout( gl );
|
||||
grouper->setAlignment( Qt::Vertical );
|
||||
|
||||
for( control_list_t::iterator it = controls.begin();
|
||||
it != controls.end(); ++it )
|
||||
for (const auto& control : controls)
|
||||
{
|
||||
if( (*it)->port()->proc == proc )
|
||||
if (control->port()->proc == proc)
|
||||
{
|
||||
buffer_data_t this_port = (*it)->port()->data_type;
|
||||
buffer_data_t this_port = control->port()->data_type;
|
||||
if( last_port != NONE &&
|
||||
( this_port == TOGGLED || this_port == ENUM ) &&
|
||||
( last_port != TOGGLED && last_port != ENUM ) )
|
||||
@@ -118,13 +116,13 @@ void LadspaControlDialog::updateEffectView( LadspaControls * _ctl )
|
||||
++row;
|
||||
col = 0;
|
||||
}
|
||||
gl->addWidget( new LadspaControlView( grouper, *it ), row, col );
|
||||
gl->addWidget(new LadspaControlView(grouper, control), row, col);
|
||||
if( ++col == cols )
|
||||
{
|
||||
++row;
|
||||
col = 0;
|
||||
}
|
||||
last_port = (*it)->port()->data_type;
|
||||
last_port = control->port()->data_type;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user