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

Fixed a lot of cppcheck warnings

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13297 383ad7c9-94d9-4d36-a494-682f7c89f535
parent f6251b9c
...@@ -104,10 +104,6 @@ private: ...@@ -104,10 +104,6 @@ private:
double far_half_height_; double far_half_height_;
double far_half_width_; double far_half_width_;
double near_half_height_;
double near_half_width_;
double aspectRatio_; double aspectRatio_;
double near_; double near_;
double far_; double far_;
......
...@@ -62,7 +62,7 @@ bool getSourceCameras( std::vector<CameraNode*>& _cameras ) ...@@ -62,7 +62,7 @@ bool getSourceCameras( std::vector<CameraNode*>& _cameras )
std::cerr << "ERROR: Camera - get_source_cameras fatal error\n"; std::cerr << "ERROR: Camera - get_source_cameras fatal error\n";
} }
return (_cameras.size() > 0 ); return ( !_cameras.empty() );
} }
...@@ -82,7 +82,7 @@ bool getTargetCameras( std::vector<CameraNode*>& _cameras ) ...@@ -82,7 +82,7 @@ bool getTargetCameras( std::vector<CameraNode*>& _cameras )
std::cerr << "ERROR: Camera - getTargetPolylines fatal error\n"; std::cerr << "ERROR: Camera - getTargetPolylines fatal error\n";
} }
return (_cameras.size() > 0 ); return ( !_cameras.empty() );
} }
......
...@@ -60,8 +60,13 @@ ...@@ -60,8 +60,13 @@
*******************************************************************************/ *******************************************************************************/
QtPlaneSelect::QtPlaneSelect( ACG::GLState& glState ) QtPlaneSelect::QtPlaneSelect( ACG::GLState& glState )
: glState( glState ), : glState( glState ),
nodeIdx_(0),
targetIdx_(0),
isDragging( false ), isDragging( false ),
transformNode( NULL ) transformNode( NULL ),
transformNodeSource( NULL ),
transformNodeDrag( NULL ),
lineNode( NULL )
{ {
} }
......
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