Skip to content

Commit a9a8fbd

Browse files
committedJun 1, 2018
[cleanup] use for range based loop
1 parent cc25727 commit a9a8fbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/providers/postgres/qgspostgresprovider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2056,7 +2056,7 @@ bool QgsPostgresProvider::addFeatures( QgsFeatureList &flist, Flags flags )
20562056

20572057
if ( !skipSinglePKField )
20582058
{
2059-
Q_FOREACH ( int idx, mPrimaryKeyAttrs )
2059+
for ( int idx : mPrimaryKeyAttrs )
20602060
{
20612061
insert += delim + quotedIdentifier( field( idx ).name() );
20622062
values += delim + QStringLiteral( "$%1" ).arg( defaultValues.size() + offset );

0 commit comments

Comments
 (0)
Please sign in to comment.