Commit 721d6f0c authored by Jan Möbius's avatar Jan Möbius
Browse files

cppcheck

parent a431485e
Pipeline #3343 passed with stage
in 61 minutes and 13 seconds
...@@ -160,8 +160,8 @@ void smooth_boundary(MeshT& _mesh, ...@@ -160,8 +160,8 @@ void smooth_boundary(MeshT& _mesh,
template < typename MeshT > template < typename MeshT >
bool neighbour(const MeshT& _mesh , bool neighbour(const MeshT& _mesh ,
const typename MeshT::FaceHandle _fh1 , const typename MeshT::FaceHandle& _fh1 ,
const typename MeshT::FaceHandle _fh2 ) const typename MeshT::FaceHandle& _fh2 )
{ {
for ( typename MeshT::FaceFaceIter ff_it(_mesh,_fh1) ; ff_it ; ++ff_it) for ( typename MeshT::FaceFaceIter ff_it(_mesh,_fh1) ; ff_it ; ++ff_it)
if (*ff_it == _fh2) if (*ff_it == _fh2)
...@@ -213,7 +213,7 @@ calc_area( const MeshT& _mesh) ...@@ -213,7 +213,7 @@ calc_area( const MeshT& _mesh)
template < typename MeshT > template < typename MeshT >
double double
calc_angle_around( const MeshT& _mesh , const typename MeshT::VertexHandle _vh) calc_angle_around( const MeshT& _mesh , const typename MeshT::VertexHandle& _vh)
{ {
double angle = 0.0; double angle = 0.0;
......
...@@ -120,8 +120,8 @@ void smooth_boundary(MeshT& _mesh , ...@@ -120,8 +120,8 @@ void smooth_boundary(MeshT& _mesh ,
*/ */
template < typename MeshT > template < typename MeshT >
bool neighbour(const MeshT& _mesh , bool neighbour(const MeshT& _mesh ,
const typename MeshT::FaceHandle _fh1 , const typename MeshT::FaceHandle& _fh1 ,
const typename MeshT::FaceHandle _fh2 ); const typename MeshT::FaceHandle& _fh2 );
/** /**
Checks if plane cuts the face Checks if plane cuts the face
...@@ -153,7 +153,7 @@ calc_area( const MeshT& _mesh); ...@@ -153,7 +153,7 @@ calc_area( const MeshT& _mesh);
*/ */
template < typename MeshT > template < typename MeshT >
double double
calc_angle_around( const MeshT& _mesh , const typename MeshT::VertexHandle _vh); calc_angle_around( const MeshT& _mesh , const typename MeshT::VertexHandle& _vh);
/** /**
* Transform geometry of the mesh using the specified * Transform geometry of the mesh using the specified
......
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