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

cppcheck fixes

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17408 383ad7c9-94d9-4d36-a494-682f7c89f535
parent b0fc5120
...@@ -234,7 +234,6 @@ unsigned int OMPropertyVisualizer<MeshT>::getClosestHalfedgeId(unsigned int _fac ...@@ -234,7 +234,6 @@ unsigned int OMPropertyVisualizer<MeshT>::getClosestHalfedgeId(unsigned int _fac
int closest_h_idx = 0; int closest_h_idx = 0;
double dist = DBL_MAX; double dist = DBL_MAX;
double temp_dist = 0.0;
ACG::Vec3d vTemp = ACG::Vec3d(0.0, 0.0, 0.0); ACG::Vec3d vTemp = ACG::Vec3d(0.0, 0.0, 0.0);
typename MeshT::Point p; typename MeshT::Point p;
...@@ -253,7 +252,7 @@ unsigned int OMPropertyVisualizer<MeshT>::getClosestHalfedgeId(unsigned int _fac ...@@ -253,7 +252,7 @@ unsigned int OMPropertyVisualizer<MeshT>::getClosestHalfedgeId(unsigned int _fac
// Find closest vertex to selection // Find closest vertex to selection
vTemp = ACG::Vec3d(p[0], p[1], p[2]); vTemp = ACG::Vec3d(p[0], p[1], p[2]);
temp_dist = (vTemp - _hitPoint).length(); const double temp_dist = (vTemp - _hitPoint).length();
if (temp_dist < dist) { if (temp_dist < dist) {
dist = temp_dist; dist = temp_dist;
...@@ -271,7 +270,6 @@ unsigned int OMPropertyVisualizer<MeshT>::getClosestVertexId(unsigned int _face, ...@@ -271,7 +270,6 @@ unsigned int OMPropertyVisualizer<MeshT>::getClosestVertexId(unsigned int _face,
int closest_v_idx = 0; int closest_v_idx = 0;
double dist = DBL_MAX; double dist = DBL_MAX;
double temp_dist = 0.0;
ACG::Vec3d vTemp = ACG::Vec3d(0.0, 0.0, 0.0); ACG::Vec3d vTemp = ACG::Vec3d(0.0, 0.0, 0.0);
typename MeshT::Point p; typename MeshT::Point p;
...@@ -282,7 +280,7 @@ unsigned int OMPropertyVisualizer<MeshT>::getClosestVertexId(unsigned int _face, ...@@ -282,7 +280,7 @@ unsigned int OMPropertyVisualizer<MeshT>::getClosestVertexId(unsigned int _face,
// Find closest vertex to selection // Find closest vertex to selection
vTemp = ACG::Vec3d(p[0], p[1], p[2]); vTemp = ACG::Vec3d(p[0], p[1], p[2]);
temp_dist = (vTemp - _hitPoint).length(); const double temp_dist = (vTemp - _hitPoint).length();
if (temp_dist < dist) { if (temp_dist < dist) {
dist = temp_dist; dist = temp_dist;
......
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