Skip to content

Commit

Permalink
Fix compiler warning about repeated branch in conditional chain
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Dec 9, 2022
1 parent 628906e commit bbce881
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/providers/wms/qgswmscapabilities.cpp
Expand Up @@ -538,17 +538,7 @@ bool QgsWmsCapabilities::parseResponse( const QByteArray &response, QgsWmsParser
format = QgsRaster::IdentifyFormatText;
else if ( f == QLatin1String( "text/html" ) )
format = QgsRaster::IdentifyFormatHtml;
else if ( f.startsWith( QLatin1String( "GML." ) ) )
format = QgsRaster::IdentifyFormatFeature; // 1.0
else if ( f == QLatin1String( "application/vnd.ogc.gml" ) )
format = QgsRaster::IdentifyFormatFeature;
else if ( f == QLatin1String( "application/json" ) )
format = QgsRaster::IdentifyFormatFeature;
else if ( f == QLatin1String( "application/geojson" ) )
format = QgsRaster::IdentifyFormatFeature;
else if ( f.contains( QLatin1String( "gml" ), Qt::CaseInsensitive ) )
format = QgsRaster::IdentifyFormatFeature;
else if ( f == QLatin1String( "text/xml" ) )
else if ( f.startsWith( QLatin1String( "GML." ) ) || f == QLatin1String( "application/vnd.ogc.gml" ) || f == QLatin1String( "application/json" ) || f == QLatin1String( "application/geojson" ) || f.contains( QLatin1String( "gml" ), Qt::CaseInsensitive ) || f == QLatin1String( "text/xml" ) )
format = QgsRaster::IdentifyFormatFeature;

mIdentifyFormats.insert( format, f );
Expand Down

0 comments on commit bbce881

Please sign in to comment.