Skip to content

Commit

Permalink
[cleanup] use for range based loop
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jun 1, 2018
1 parent cc25727 commit a9a8fbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -2056,7 +2056,7 @@ bool QgsPostgresProvider::addFeatures( QgsFeatureList &flist, Flags flags )

if ( !skipSinglePKField )
{
Q_FOREACH ( int idx, mPrimaryKeyAttrs )
for ( int idx : mPrimaryKeyAttrs )
{
insert += delim + quotedIdentifier( field( idx ).name() );
values += delim + QStringLiteral( "$%1" ).arg( defaultValues.size() + offset );
Expand Down

0 comments on commit a9a8fbd

Please sign in to comment.