mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Make doxygen a bit happier
This commit is contained in:
parent
08c2002d10
commit
79e63d8922
@ -52,7 +52,7 @@ QgsVectorLayerExporter::QgsVectorLayerExporter( const QString &uri,
|
||||
const QgsCoordinateReferenceSystem &crs,
|
||||
bool overwrite,
|
||||
const QMap<QString, QVariant> &options,
|
||||
SinkFlags sinkFlags )
|
||||
QgsFeatureSink::SinkFlags sinkFlags )
|
||||
: mErrorCount( 0 )
|
||||
, mAttributeCount( -1 )
|
||||
|
||||
@ -126,7 +126,7 @@ QgsVectorLayerExporter::QgsVectorLayerExporter( const QString &uri,
|
||||
// that will be filled by ogr with unique values.
|
||||
|
||||
// HACK sorry
|
||||
const QString path = QgsProviderRegistry::instance()->decodeUri( QStringLiteral( "ogr" ), uri ).value( QStringLiteral( "path" ) );
|
||||
const QString path = QgsProviderRegistry::instance()->decodeUri( QStringLiteral( "ogr" ), uri ).value( QStringLiteral( "path" ) ).toString();
|
||||
if ( sinkFlags.testFlag( QgsFeatureSink::SinkFlag::RegeneratePrimaryKey ) && path.endsWith( QLatin1String( ".gpkg" ) ) )
|
||||
{
|
||||
QString fidName = options.value( QStringLiteral( "FID" ), QStringLiteral( "FID" ) ).toString();
|
||||
|
Loading…
x
Reference in New Issue
Block a user