Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Kuhn <matthias@opengis.ch>
  • Loading branch information
borysiasty and m-kuhn committed Aug 6, 2020
1 parent 560eb31 commit a4943ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -904,8 +904,7 @@ bool QgsPostgresProvider::loadFields()
if ( !attroids.isEmpty() )
{
QStringList attroidsList;
const auto constAttroids = attroids;
for ( Oid attroid : constAttroids )
for ( Oid attroid : qgis::as_const( attroids ) )
{
attroidsList.append( QString::number( attroid ) );
}
Expand Down

0 comments on commit a4943ee

Please sign in to comment.