Navigation Menu

Skip to content

Commit

Permalink
Fix some build warnings on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 14, 2020
1 parent 4aaae4f commit 9502dca
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/3d/mesh/qgsmeshterraingenerator.cpp
Expand Up @@ -60,7 +60,10 @@ QgsChunkLoader *QgsMeshTerrainGenerator::createChunkLoader( QgsChunkNode *node )
return new QgsMeshTerrainTileLoader( mTerrain, node, meshLayer(), symbol() );
}

float QgsMeshTerrainGenerator::rootChunkError( const Qgs3DMapSettings &map ) const {Q_UNUSED( map ); return 0;}
float QgsMeshTerrainGenerator::rootChunkError( const Qgs3DMapSettings & ) const
{
return 0;
}

void QgsMeshTerrainGenerator::rootChunkHeightRange( float &hMin, float &hMax ) const
{
Expand All @@ -77,7 +80,7 @@ void QgsMeshTerrainGenerator::rootChunkHeightRange( float &hMin, float &hMax ) c

for ( int i = 0; i < triangularMesh->vertices().count(); ++i )
{
float zValue = triangularMesh->vertices().at( i ).z();
float zValue = static_cast< float >( triangularMesh->vertices().at( i ).z() );
if ( min > zValue )
min = zValue;
if ( max < zValue )
Expand Down Expand Up @@ -131,7 +134,7 @@ QgsRectangle QgsMeshTerrainGenerator::extent() const
{
extentInMap = terrainToMapTransform.transform( mLayer->extent() );
}
catch ( QgsCsException &e )
catch ( QgsCsException & )
{
extentInMap = mLayer->extent();
}
Expand Down

0 comments on commit 9502dca

Please sign in to comment.