Skip to content
Permalink
Browse files

Fix coverity identical code for different branches warning

  • Loading branch information
nyalldawson committed Jul 26, 2017
1 parent 3e3f1d4 commit f5f133e0b2c0ce0194c91b6dc9266946aa87f1fa
Showing with 2 additions and 8 deletions.
  1. +2 −8 src/server/services/wms/qgswmsrenderer.cpp
@@ -1171,10 +1171,7 @@ namespace QgsWms
QgsVectorLayer *vectorLayer = qobject_cast<QgsVectorLayer *>( layer );
if ( vectorLayer )
{
if ( !featureInfoFromVectorLayer( vectorLayer, infoPoint.get(), featureCount, result, layerElement, mapSettings, renderContext, version, featuresRect.get(), filterGeom.get() ) )
{
break;
}
( void )featureInfoFromVectorLayer( vectorLayer, infoPoint.get(), featureCount, result, layerElement, mapSettings, renderContext, version, featuresRect.get(), filterGeom.get() );
break;
}
}
@@ -1194,10 +1191,7 @@ namespace QgsWms
break;
}
QgsPointXY layerInfoPoint = mapSettings.mapToLayerCoordinates( layer, *( infoPoint.get() ) );
if ( !featureInfoFromRasterLayer( rasterLayer, mapSettings, &layerInfoPoint, result, layerElement, version ) )
{
break;
}
( void )featureInfoFromRasterLayer( rasterLayer, mapSettings, &layerInfoPoint, result, layerElement, version );
break;
}
}

0 comments on commit f5f133e

Please sign in to comment.
You can’t perform that action at this time.