Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 27, 2021
1 parent f507329 commit d2e9b7e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -5036,10 +5036,9 @@ QList<QgsRelation> QgsPostgresProvider::discoverRelations( const QgsVectorLayer
{
// multi reference field => add the field pair to all the referenced layers found
const QList<QgsVectorLayer *> foundLayers = searchLayers( layers, mUri.connectionInfo( false ), refSchema, refTable );
const auto constFoundLayers = foundLayers;
for ( int i = 0; i < nbFound; ++i )
{
for ( const QgsVectorLayer *foundLayer : constFoundLayers )
for ( const QgsVectorLayer *foundLayer : foundLayers )
{
if ( result[result.size() - 1 - i].referencedLayerId() == foundLayer->id() )
{
Expand Down

0 comments on commit d2e9b7e

Please sign in to comment.