Skip to content

Commit

Permalink
RAII
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Apr 5, 2019
1 parent 8cdfaa3 commit 1f1e17b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/qgsvectorlayerfeatureiterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,6 @@ void QgsVectorLayerFeatureIterator::prepareExpression( int fieldIdx )
return;
}
}
mExpressionFieldInfo.insert( fieldIdx, exp.release() );

for ( const QString &col : referencedColumns )
{
Expand All @@ -666,6 +665,8 @@ void QgsVectorLayerFeatureIterator::prepareExpression( int fieldIdx )
{
mRequest.setFlags( mRequest.flags() & ~QgsFeatureRequest::NoGeometry );
}

mExpressionFieldInfo.insert( fieldIdx, exp.release() );
}

void QgsVectorLayerFeatureIterator::prepareFields()
Expand Down

0 comments on commit 1f1e17b

Please sign in to comment.