Skip to content
Permalink
Browse files

[cleanup] use for range based loop

  • Loading branch information
rouault committed Jun 1, 2018
1 parent cc25727 commit a9a8fbdb172af62cf149bbce40a5f474947d8e70
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/postgres/qgspostgresprovider.cpp
@@ -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 );

0 comments on commit a9a8fbd

Please sign in to comment.
You can’t perform that action at this time.