Mercurial > octave
diff libgui/graphics/Container.cc @ 27677:92fea2cd024f
use standard C++ range-based for loops instead of Qt foreach macro
* ButtonGroup.cc, Container.cc, Figure.cc, GenericEventNotify.h,
ListBoxControl.cc, Menu.cc, Panel.cc, QtHandlesUtils.cc: Replace uses
of Qt foreach macros with standard C++ range-based for loops.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 12 Nov 2019 14:39:07 -0500 |
parents | 2a506bc4a7af |
children | b442ec6dda5c |
line wrap: on
line diff
--- a/libgui/graphics/Container.cc Tue Nov 12 13:51:22 2019 -0500 +++ b/libgui/graphics/Container.cc Tue Nov 12 14:39:07 2019 -0500 @@ -137,7 +137,7 @@ octave::autolock guard (gh_mgr.graphics_lock ()); - foreach (QObject *qObj, children ()) + for (auto *qObj : children ()) { if (qObj->isWidgetType ()) {