diff libgui/graphics/QtHandlesUtils.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 f844b1f03dcc
children b442ec6dda5c
line wrap: on
line diff
--- a/libgui/graphics/QtHandlesUtils.cc	Tue Nov 12 13:51:22 2019 -0500
+++ b/libgui/graphics/QtHandlesUtils.cc	Tue Nov 12 14:39:07 2019 -0500
@@ -77,7 +77,7 @@
       string_vector v (l.length ());
       int i = 0;
 
-      foreach (const QString& s, l)
+      for (const auto& s : l)
         v[i++] = toStdString (s);
 
       return v;