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:
@@ -401,7 +401,7 @@ Action * StdCmdStatusBar::createAction()
|
||||
Action *pcAction = Command::createAction();
|
||||
pcAction->setCheckable(true);
|
||||
pcAction->setChecked(false, true);
|
||||
FilterStatusBar *fsb = new FilterStatusBar(pcAction);
|
||||
auto fsb = new FilterStatusBar(pcAction);
|
||||
getMainWindow()->statusBar()->installEventFilter(fsb);
|
||||
|
||||
return pcAction;
|
||||
|
||||
Reference in New Issue
Block a user