Replaced all Qt foreach loops with modern C++ range-based loops. (#277)
This commit is contained in:
+1
-1
@@ -289,7 +289,7 @@ namespace glabels
|
||||
///
|
||||
void File::exit()
|
||||
{
|
||||
foreach ( QWidget* qwidget, QApplication::topLevelWidgets() )
|
||||
for ( QWidget* qwidget : QApplication::topLevelWidgets() )
|
||||
{
|
||||
if ( auto* window = qobject_cast<MainWindow*>(qwidget) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user