Mesh: Fix linter warnings

This commit is contained in:
wmayer
2024-11-20 23:02:40 +01:00
committed by wwmayer
parent 6f5259af26
commit fbd9eac848
86 changed files with 1734 additions and 1882 deletions

View File

@@ -67,7 +67,7 @@ QVariant PropertyMeshKernelItem::value(const App::Property*) const
const std::vector<App::Property*>& props = getPropertyData();
for (auto prop : props) {
Mesh::PropertyMeshKernel* pPropMesh = (Mesh::PropertyMeshKernel*)prop;
Mesh::PropertyMeshKernel* pPropMesh = static_cast<Mesh::PropertyMeshKernel*>(prop);
const MeshKernel& rMesh = pPropMesh->getValue().getKernel();
ctP += (int)rMesh.CountPoints();
ctE += (int)rMesh.CountEdges();
@@ -113,7 +113,7 @@ int PropertyMeshKernelItem::countPoints() const
int ctP = 0;
const std::vector<App::Property*>& props = getPropertyData();
for (auto prop : props) {
Mesh::PropertyMeshKernel* pPropMesh = (Mesh::PropertyMeshKernel*)prop;
Mesh::PropertyMeshKernel* pPropMesh = static_cast<Mesh::PropertyMeshKernel*>(prop);
const MeshKernel& rMesh = pPropMesh->getValue().getKernel();
ctP += (int)rMesh.CountPoints();
}
@@ -126,7 +126,7 @@ int PropertyMeshKernelItem::countEdges() const
int ctE = 0;
const std::vector<App::Property*>& props = getPropertyData();
for (auto prop : props) {
Mesh::PropertyMeshKernel* pPropMesh = (Mesh::PropertyMeshKernel*)prop;
Mesh::PropertyMeshKernel* pPropMesh = static_cast<Mesh::PropertyMeshKernel*>(prop);
const MeshKernel& rMesh = pPropMesh->getValue().getKernel();
ctE += (int)rMesh.CountEdges();
}
@@ -139,7 +139,7 @@ int PropertyMeshKernelItem::countFaces() const
int ctF = 0;
const std::vector<App::Property*>& props = getPropertyData();
for (auto prop : props) {
Mesh::PropertyMeshKernel* pPropMesh = (Mesh::PropertyMeshKernel*)prop;
Mesh::PropertyMeshKernel* pPropMesh = static_cast<Mesh::PropertyMeshKernel*>(prop);
const MeshKernel& rMesh = pPropMesh->getValue().getKernel();
ctF += (int)rMesh.CountFacets();
}