Skip to content

Commit

Permalink
Fix build on older gdal
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 30, 2022
1 parent e452ca2 commit bfc8a19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/providers/ogr/qgsogrproviderconnection.cpp
Expand Up @@ -1016,7 +1016,7 @@ void QgsOgrProviderConnection::addRelationship( const QgsWeakRelation &relations
throw QgsProviderConnectionException( QObject::tr( "There was an error opening the dataset %1!" ).arg( uri() ) );
}
#else
Q_UNUSED( tableName )
Q_UNUSED( relationship )
throw QgsProviderConnectionException( QObject::tr( "Adding relationships for datasets requires GDAL 3.6 or later" ) );
#endif
}
Expand Down Expand Up @@ -1061,7 +1061,7 @@ void QgsOgrProviderConnection::updateRelationship( const QgsWeakRelation &relati
throw QgsProviderConnectionException( QObject::tr( "There was an error opening the dataset %1!" ).arg( uri() ) );
}
#else
Q_UNUSED( tableName )
Q_UNUSED( relationship )
throw QgsProviderConnectionException( QObject::tr( "Updating relationships for datasets requires GDAL 3.6 or later" ) );
#endif
}
Expand Down Expand Up @@ -1091,7 +1091,7 @@ void QgsOgrProviderConnection::deleteRelationship( const QgsWeakRelation &relati
throw QgsProviderConnectionException( QObject::tr( "There was an error opening the dataset %1!" ).arg( uri() ) );
}
#else
Q_UNUSED( tableName )
Q_UNUSED( relationship )
throw QgsProviderConnectionException( QObject::tr( "Deleting relationships for datasets requires GDAL 3.6 or later" ) );
#endif
}
Expand Down

0 comments on commit bfc8a19

Please sign in to comment.