Skip to content
Permalink
Browse files

Fix compiler warnings

  • Loading branch information
nyalldawson committed May 5, 2020
1 parent a3397a8 commit d574bf7aaaf09941c023941304c534029998c3a6
Showing with 1 addition and 6 deletions.
  1. +1 −3 src/core/mesh/qgsmeshlayer.cpp
  2. +0 −3 src/core/qgslegendrenderer.cpp
@@ -581,14 +581,12 @@ QgsPointXY QgsMeshLayer::snapOnElement( QgsMesh::ElementType elementType, const
{
case QgsMesh::Vertex:
return snapOnVertex( point, searchRadius );
break;
case QgsMesh::Edge:
return snapOnEdge( point, searchRadius );
break;
case QgsMesh::Face:
return snapOnFace( point, searchRadius );
break;
}
return QgsPointXY(); // avoid warnings
}

QgsMeshDatasetIndex QgsMeshLayer::staticScalarDatasetIndex() const
@@ -423,7 +423,6 @@ int QgsLegendRenderer::setColumns( QList<LegendComponentGroup> &componentGroups
double totalHeight = 0;
qreal maxGroupHeight = 0;
int forcedColumnBreaks = 0;
bool first = true;
for ( const LegendComponentGroup &group : qgis::as_const( componentGroups ) )
{
totalHeight += spaceAboveGroup( group );
@@ -432,8 +431,6 @@ int QgsLegendRenderer::setColumns( QList<LegendComponentGroup> &componentGroups

if ( group.placeColumnBreakBeforeGroup )
forcedColumnBreaks++;

first = false;
}

if ( mSettings.columnCount() == 0 && forcedColumnBreaks == 0 )

0 comments on commit d574bf7

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