Skip to content

Commit c55e712

Browse files
committed
Apply suggestions from code review
1 parent e9b8440 commit c55e712

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/gui/vector/qgsstackeddiagramproperties.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -399,15 +399,13 @@ QMimeData *QgsStackedDiagramPropertiesModel::mimeData( const QModelIndexList &in
399399

400400
QDataStream stream( &encodedData, QIODevice::WriteOnly );
401401

402-
const auto constIndexes = indexes;
403-
for ( const QModelIndex &index : constIndexes )
402+
for ( const QModelIndex &index : indexes )
404403
{
405404
// each item consists of several columns - let's add it with just first one
406405
if ( !index.isValid() || index.column() != 0 )
407406
continue;
408407

409-
QgsDiagramRenderer *diagram = mRenderers.at( index.row() );
410-
if ( diagram )
408+
if ( QgsDiagramRenderer *diagram = mRenderers.at( index.row() ) )
411409
{
412410
QDomDocument doc;
413411

0 commit comments

Comments
 (0)