clang-tidy: Apply modernize-use-auto everywhere (#6480)

Note: clang-tidy was run with `--format-style=file`.
This commit is contained in:
saker
2022-09-14 17:27:53 +00:00
committed by GitHub
parent 550c7bf82e
commit 0b27497be2
170 changed files with 1112 additions and 1341 deletions

View File

@@ -47,7 +47,7 @@ DynProcControlDialog::DynProcControlDialog(
setPalette( pal );
setFixedSize( 224, 319 );
Graph * waveGraph = new Graph( this, Graph::LinearNonCyclicStyle, 204, 205 );
auto waveGraph = new Graph(this, Graph::LinearNonCyclicStyle, 204, 205);
waveGraph -> move( 10, 6 );
waveGraph -> setModel( &_controls -> m_wavegraphModel );
waveGraph -> setAutoFillBackground( true );
@@ -58,7 +58,7 @@ DynProcControlDialog::DynProcControlDialog(
waveGraph->setGraphColor( QColor( 85, 204, 145 ) );
waveGraph -> setMaximumSize( 204, 205 );
Knob * inputKnob = new Knob( knobBright_26, this);
auto inputKnob = new Knob(knobBright_26, this);
inputKnob -> setVolumeKnob( true );
inputKnob -> setVolumeRatio( 1.0 );
inputKnob -> move( 26, 223 );
@@ -66,21 +66,21 @@ DynProcControlDialog::DynProcControlDialog(
inputKnob->setLabel( tr( "INPUT" ) );
inputKnob->setHintText( tr( "Input gain:" ) , "" );
Knob * outputKnob = new Knob( knobBright_26, this );
auto outputKnob = new Knob(knobBright_26, this);
outputKnob -> setVolumeKnob( true );
outputKnob -> setVolumeRatio( 1.0 );
outputKnob -> move( 76, 223 );
outputKnob->setModel( &_controls->m_outputModel );
outputKnob->setLabel( tr( "OUTPUT" ) );
outputKnob->setHintText( tr( "Output gain:" ) , "" );
Knob * attackKnob = new Knob( knobBright_26, this);
auto attackKnob = new Knob(knobBright_26, this);
attackKnob -> move( 24, 268 );
attackKnob->setModel( &_controls->m_attackModel );
attackKnob->setLabel( tr( "ATTACK" ) );
attackKnob->setHintText( tr( "Peak attack time:" ) , "ms" );
Knob * releaseKnob = new Knob( knobBright_26, this );
auto releaseKnob = new Knob(knobBright_26, this);
releaseKnob -> move( 74, 268 );
releaseKnob->setModel( &_controls->m_releaseModel );
releaseKnob->setLabel( tr( "RELEASE" ) );
@@ -88,28 +88,28 @@ DynProcControlDialog::DynProcControlDialog(
//wavegraph control buttons
PixmapButton * resetButton = new PixmapButton( this, tr("Reset wavegraph") );
auto resetButton = new PixmapButton(this, tr("Reset wavegraph"));
resetButton -> move( 162, 223 );
resetButton -> resize( 13, 48 );
resetButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "reset_active" ) );
resetButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "reset_inactive" ) );
resetButton->setToolTip(tr("Reset wavegraph"));
PixmapButton * smoothButton = new PixmapButton( this, tr("Smooth wavegraph") );
auto smoothButton = new PixmapButton(this, tr("Smooth wavegraph"));
smoothButton -> move( 162, 239 );
smoothButton -> resize( 13, 48 );
smoothButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "smooth_active" ) );
smoothButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "smooth_inactive" ) );
smoothButton->setToolTip(tr("Smooth wavegraph"));
PixmapButton * addOneButton = new PixmapButton( this, tr("Increase wavegraph amplitude by 1 dB") );
auto addOneButton = new PixmapButton(this, tr("Increase wavegraph amplitude by 1 dB"));
addOneButton -> move( 131, 223 );
addOneButton -> resize( 13, 29 );
addOneButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "add1_active" ) );
addOneButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "add1_inactive" ) );
addOneButton->setToolTip(tr("Increase wavegraph amplitude by 1 dB"));
PixmapButton * subOneButton = new PixmapButton( this, tr("Decrease wavegraph amplitude by 1 dB") );
auto subOneButton = new PixmapButton(this, tr("Decrease wavegraph amplitude by 1 dB"));
subOneButton -> move( 131, 239 );
subOneButton -> resize( 13, 29 );
subOneButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "sub1_active" ) );
@@ -117,28 +117,28 @@ DynProcControlDialog::DynProcControlDialog(
subOneButton->setToolTip(tr("Decrease wavegraph amplitude by 1 dB"));
//stereomode switches
PixmapButton * smMaxButton = new PixmapButton( this, tr( "Stereo mode: maximum" ) );
auto smMaxButton = new PixmapButton(this, tr("Stereo mode: maximum"));
smMaxButton -> move( 131, 257 );
smMaxButton -> resize( 78, 17 );
smMaxButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "max_active" ) );
smMaxButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "max_inactive" ) );
smMaxButton->setToolTip(tr("Process based on the maximum of both stereo channels"));
PixmapButton * smAvgButton = new PixmapButton( this, tr( "Stereo mode: average" ) );
auto smAvgButton = new PixmapButton(this, tr("Stereo mode: average"));
smAvgButton -> move( 131, 274 );
smAvgButton -> resize( 78, 16 );
smAvgButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "avg_active" ) );
smAvgButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "avg_inactive" ) );
smAvgButton->setToolTip(tr("Process based on the average of both stereo channels"));
PixmapButton * smUnlButton = new PixmapButton( this, tr( "Stereo mode: unlinked" ) );
auto smUnlButton = new PixmapButton(this, tr("Stereo mode: unlinked"));
smUnlButton -> move( 131, 290 );
smUnlButton -> resize( 78, 17 );
smUnlButton -> setActiveGraphic( PLUGIN_NAME::getIconPixmap( "unl_active" ) );
smUnlButton -> setInactiveGraphic( PLUGIN_NAME::getIconPixmap( "unl_inactive" ) );
smUnlButton->setToolTip(tr("Process each stereo channel independently"));
automatableButtonGroup * smGroup = new automatableButtonGroup( this );
auto smGroup = new automatableButtonGroup(this);
smGroup -> addButton( smMaxButton );
smGroup -> addButton( smAvgButton );
smGroup -> addButton( smUnlButton );