Mesh: Fix linter warnings
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user