Gui: Use auto and range-based for (#7481)
* On lines where the variable type is obvious from inspection, avoid repeating the type using auto. * When possible use a ranged for loop instead of begin() and end() iterators
This commit is contained in:
@@ -42,7 +42,7 @@ ToolBox::ToolBox( QWidget *parent )
|
||||
_pToolBox = new QToolBox( this );
|
||||
connect( _pToolBox, SIGNAL( currentChanged(int) ), this, SIGNAL( currentChanged(int) ) );
|
||||
|
||||
QGridLayout* pGrid = new QGridLayout(this);
|
||||
auto pGrid = new QGridLayout(this);
|
||||
pGrid->addWidget(_pToolBox, 0, 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user