Commit 945bfd62 authored by luyikei's avatar luyikei

PreferenceWidget: Use C++11 style for-loop

parent d995a642
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment