Fixed cppcheck warnings
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@486 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -275,9 +275,7 @@ QGLViewerWidget::mouseMoveEvent( QMouseEvent* _event )
|
||||
// Left button: rotate around center_
|
||||
// Middle button: translate object
|
||||
// Left & middle button: zoom in/out
|
||||
|
||||
|
||||
float value_y;
|
||||
Vec3f newPoint3D;
|
||||
bool newPoint_hitSphere = map_to_sphere( newPoint2D, newPoint3D );
|
||||
|
||||
@@ -296,7 +294,7 @@ QGLViewerWidget::mouseMoveEvent( QMouseEvent* _event )
|
||||
// move in z direction
|
||||
if ( (_event->button() == Qt::LeftButton) && (_event->button() == Qt::MidButton))
|
||||
{
|
||||
value_y = radius_ * dy * 3.0 / h;
|
||||
float value_y = radius_ * dy * 3.0 / h;
|
||||
translate(Vec3f(0.0, 0.0, value_y));
|
||||
}
|
||||
|
||||
|
||||
@@ -703,7 +703,6 @@ open_vd_base_mesh(const char* _filename)
|
||||
|
||||
|
||||
#ifdef EXAMPLE_CREATION
|
||||
int tree_id, node_id;
|
||||
|
||||
// load details
|
||||
for (i=0; i<n_details_; ++i)
|
||||
|
||||
@@ -275,7 +275,6 @@ QGLViewerWidget::mouseMoveEvent( QMouseEvent* _event )
|
||||
// Left & middle button: zoom in/out
|
||||
|
||||
|
||||
float value_y;
|
||||
Vec3f newPoint3D;
|
||||
bool newPoint_hitSphere = map_to_sphere( newPoint2D, newPoint3D );
|
||||
|
||||
@@ -294,7 +293,7 @@ QGLViewerWidget::mouseMoveEvent( QMouseEvent* _event )
|
||||
// move in z direction
|
||||
if ( (_event->state() & LeftButton) && (_event->state() & MidButton))
|
||||
{
|
||||
value_y = radius_ * dy * 3.0 / h;
|
||||
float value_y = radius_ * dy * 3.0 / h;
|
||||
translate(Vec3f(0.0, 0.0, value_y));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user