Skip to content
Permalink
Browse files

Fix some build warnings

  • Loading branch information
nyalldawson committed Mar 9, 2020
1 parent 61d1ac1 commit f208580498c2a34da779a93f65b7cabdc6ab3e2e
@@ -370,6 +370,7 @@ bool QgsMesh::contains( const QgsMesh::ElementType &type ) const
case ElementType::Face:
return !faces.isEmpty();
}
return false;
}

int QgsMesh::vertexCount() const
@@ -511,4 +512,5 @@ bool QgsMeshDataSourceInterface::contains( const QgsMesh::ElementType &type ) co
case QgsMesh::ElementType::Face:
return faceCount() != 0;
}
return false;
}
@@ -45,6 +45,7 @@ int QgsMeshLayerUtils::datasetValuesCount( const QgsMesh *mesh, QgsMeshDatasetGr
case QgsMeshDatasetGroupMetadata::DataType::DataOnVolumes:
return mesh->faceCount(); // because they are averaged to faces
}
return 0;
}

QgsMeshDatasetGroupMetadata::DataType QgsMeshLayerUtils::datasetValuesType( const QgsMeshDatasetGroupMetadata::DataType &type )
@@ -271,6 +271,8 @@ bool QgsTriangularMesh::contains( const QgsMesh::ElementType &type ) const
case QgsMesh::ElementType::Face:
return mTriangularMesh.faceCount() != 0;
}

return false;
}

const QVector<QgsMeshVertex> &QgsTriangularMesh::vertices() const

0 comments on commit f208580

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