Re: [Qgis-developer] Replacing Q_FOREACH in Qgis code

2017-01-19 Thread Larry Shaffer
Hi David, Thanks for bringing this up. After reading the referenced KDAB article (and especially the not-so-happy comments about this deprecation), I looked at the code base. Instances of Q_FOREACH in QGIS 2.99 (master): 2023 Why can't Qt just leave the macro in and recommend using a better

[Qgis-developer] Replacing Q_FOREACH in Qgis code

2017-01-19 Thread David Marteau
Hi, I would like to know if there is plans for replacing Q_FOREACH (use discouraged from QT 5.7) with C++11 range based loop in QGIS code and if it is appropriate to start the move in new PR ? Some références: http://doc.qt.io/qt-5/qtglobal.html#Q_FOREACH