Skip to content

Commit

Permalink
Fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 5, 2020
1 parent a3397a8 commit d574bf7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions src/core/mesh/qgsmeshlayer.cpp
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions src/core/qgslegendrenderer.cpp
Expand Up @@ -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 );
Expand All @@ -432,8 +431,6 @@ int QgsLegendRenderer::setColumns( QList<LegendComponentGroup> &componentGroups

if ( group.placeColumnBreakBeforeGroup )
forcedColumnBreaks++;

first = false;
}

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

0 comments on commit d574bf7

Please sign in to comment.