Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove useless use of binary or
  • Loading branch information
rouault committed Oct 17, 2017
1 parent c645479 commit 9fdd060
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -254,7 +254,7 @@ QgsVectorLayerExporter::ExportError QgsOgrProvider::createEmptyLayer( const QStr
{
if ( !overwrite && !layerName.isEmpty() )
{
GDALDatasetH hDS = GDALOpenEx( uri.toUtf8().constData(), GDAL_OF_VECTOR | GDAL_OF_VECTOR, nullptr, nullptr, nullptr );
GDALDatasetH hDS = GDALOpenEx( uri.toUtf8().constData(), GDAL_OF_VECTOR, nullptr, nullptr, nullptr );
if ( hDS )
{
if ( GDALDatasetGetLayerByName( hDS, layerName.toUtf8().constData() ) )
Expand Down Expand Up @@ -308,7 +308,7 @@ QgsVectorLayerExporter::ExportError QgsOgrProvider::createEmptyLayer( const QStr
bool firstFieldIsFid = false;
if ( !layerName.isEmpty() )
{
GDALDatasetH hDS = GDALOpenEx( uri.toUtf8().constData(), GDAL_OF_VECTOR | GDAL_OF_VECTOR, nullptr, nullptr, nullptr );
GDALDatasetH hDS = GDALOpenEx( uri.toUtf8().constData(), GDAL_OF_VECTOR, nullptr, nullptr, nullptr );
if ( hDS )
{
OGRLayerH hLayer = GDALDatasetGetLayerByName( hDS, layerName.toUtf8().constData() );
Expand Down

0 comments on commit 9fdd060

Please sign in to comment.