Skip to content

Commit 7604d9b

Browse files
committed
fix build with GDAL >=2.3 (followup 2ed5472)
1 parent ad00020 commit 7604d9b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/qgsvectorfilewriter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2815,13 +2815,13 @@ QList< QgsVectorFileWriter::FilterFormatDetails > QgsVectorFileWriter::supported
28152815

28162816
#if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(2,3,0)
28172817
GDALDriverH gdalDriver = GDALGetDriverByName( drvName.toLocal8Bit().constData() );
2818-
char **driverMetadata = nullptr;
2818+
char **metadata = nullptr;
28192819
if ( gdalDriver )
28202820
{
2821-
driverMetadata = GDALGetMetadata( gdalDriver, nullptr );
2821+
metadata = GDALGetMetadata( gdalDriver, nullptr );
28222822
}
28232823

2824-
bool nonSpatialFormat = CSLFetchBoolean( driverMetadata, GDAL_DCAP_NONSPATIAL, false );
2824+
bool nonSpatialFormat = CSLFetchBoolean( metadata, GDAL_DCAP_NONSPATIAL, false );
28252825
#else
28262826
bool nonSpatialFormat = ( drvName == QLatin1String( "ODS" ) || drvName == QLatin1String( "XLSX" ) || drvName == QLatin1String( "XLS" ) );
28272827
#endif

0 commit comments

Comments
 (0)