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:
@@ -85,7 +85,7 @@ void ToolBoxManager::setup( ToolBarItem* toolBar ) const
|
||||
|
||||
for ( QList<ToolBarItem*>::Iterator item = items.begin(); item != items.end(); ++item )
|
||||
{
|
||||
QToolBar* bar = new QToolBar();
|
||||
auto bar = new QToolBar();
|
||||
bar->setOrientation(Qt::Vertical);
|
||||
bar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
||||
std::string toolbarName = (*item)->command();
|
||||
|
||||
Reference in New Issue
Block a user