[vlmc-devel] PreferenceWidget: Use C++11 style for-loop

Yikai Lu git at videolan.org
Thu Mar 30 08:00:41 CEST 2017


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Fri Mar 10 15:20:32 2017 -0600| [945bfd62d9eea602dd4e8738b97134aa72f502e6] | committer: Yikai Lu

PreferenceWidget: Use C++11 style for-loop

> https://code.videolan.org/videolan/vlmc/commit/945bfd62d9eea602dd4e8738b97134aa72f502e6
---

 src/Gui/settings/PreferenceWidget.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Gui/settings/PreferenceWidget.cpp b/src/Gui/settings/PreferenceWidget.cpp
index e13a021..d35bb5e 100644
--- a/src/Gui/settings/PreferenceWidget.cpp
+++ b/src/Gui/settings/PreferenceWidget.cpp
@@ -55,7 +55,7 @@ PreferenceWidget::PreferenceWidget( const QString &name, const char *label, Sett
     QFormLayout *layout = new QFormLayout( container );
     layout->setFieldGrowthPolicy( QFormLayout::AllNonFixedFieldsGrow );
 
-    foreach ( SettingValue* s, settingList )
+    for ( auto s : settingList )
     {
         //Do not display private variables
         if ( ( s->flags() & SettingValue::Private ) != 0 )



More information about the Vlmc-devel mailing list