Skip to content

Commit

Permalink
Avoid cppcheck ast error
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 17, 2023
1 parent 98ed214 commit 100f6b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/symbology/qgsgraduatedsymbolrendererwidget.cpp
Expand Up @@ -917,7 +917,7 @@ void QgsGraduatedSymbolRendererWidget::clearParameterWidgets()
while ( mParametersLayout->rowCount() )
{
QFormLayout::TakeRowResult row = mParametersLayout->takeRow( 0 );
for ( QLayoutItem *item : QList<QLayoutItem *>( {row.labelItem, row.fieldItem} ) )
for ( QLayoutItem *item : {row.labelItem, row.fieldItem} )
if ( item )
{
if ( item->widget() )
Expand Down

0 comments on commit 100f6b9

Please sign in to comment.