Commit a4a142c1 authored by Jan Möbius's avatar Jan Möbius

Fixed cppcheck warnings

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15832 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 798eafe1
...@@ -50,7 +50,6 @@ template <typename MeshT> ...@@ -50,7 +50,6 @@ template <typename MeshT>
template <typename InnerType> template <typename InnerType>
QString OVMPropertyVisualizer<MeshT>::getPropertyText_(unsigned int index) QString OVMPropertyVisualizer<MeshT>::getPropertyText_(unsigned int index)
{ {
MeshT* mesh = OVMPropertyVisualizer<MeshT>::mesh;
if (PropertyVisualizer::propertyInfo.isCellProp()) if (PropertyVisualizer::propertyInfo.isCellProp())
{ {
OpenVolumeMesh::CellPropertyT<InnerType> prop = OVMPropertyVisualizer<MeshT>::mesh->template request_cell_property<InnerType>(OVMPropertyVisualizer<MeshT>::propertyInfo.propName()); OpenVolumeMesh::CellPropertyT<InnerType> prop = OVMPropertyVisualizer<MeshT>::mesh->template request_cell_property<InnerType>(OVMPropertyVisualizer<MeshT>::propertyInfo.propName());
...@@ -187,7 +186,7 @@ unsigned int OVMPropertyVisualizer<MeshT>::getClosestHalfedgeId(unsigned int _fa ...@@ -187,7 +186,7 @@ unsigned int OVMPropertyVisualizer<MeshT>::getClosestHalfedgeId(unsigned int _fa
double min_distance = DBL_MAX; double min_distance = DBL_MAX;
OpenVolumeMesh::HalfEdgeHandle closestHalfEdgeHandle; OpenVolumeMesh::HalfEdgeHandle closestHalfEdgeHandle;
for (std::vector<OpenVolumeMesh::HalfEdgeHandle>::const_iterator he_it = halfedges.begin(); he_it != halfedges.end(); he_it++) for (std::vector<OpenVolumeMesh::HalfEdgeHandle>::const_iterator he_it = halfedges.begin(); he_it != halfedges.end(); ++he_it)
{ {
OpenVolumeMesh::OpenVolumeMeshEdge edge = OVMPropertyVisualizer<MeshT>::mesh->halfedge(*he_it); OpenVolumeMesh::OpenVolumeMeshEdge edge = OVMPropertyVisualizer<MeshT>::mesh->halfedge(*he_it);
ACG::Vec3d v1 = mesh->vertex(edge.from_vertex()); ACG::Vec3d v1 = mesh->vertex(edge.from_vertex());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment