Commit 99bdf023 authored by Jan Möbius's avatar Jan Möbius
Browse files

Fxed some cpp_check warnings

parent 564202f9
Pipeline #3337 passed with stage
in 86 minutes and 30 seconds
...@@ -385,22 +385,22 @@ private: ...@@ -385,22 +385,22 @@ private:
* @param _hh corresponding halfedge handle of this vertex * @param _hh corresponding halfedge handle of this vertex
* @param _fh corresponding face handle of this vertex * @param _fh corresponding face handle of this vertex
*/ */
void readVertex(size_t _vertex, void readVertex(size_t _vertex,
const typename Mesh::VertexHandle _vh, const typename Mesh::VertexHandle& _vh,
const typename Mesh::HalfedgeHandle _hh, const typename Mesh::HalfedgeHandle& _hh,
const typename Mesh::FaceHandle _fh); const typename Mesh::FaceHandle& _fh);
/** \brief return a vertex color from mesh /** \brief return a vertex color from mesh
* *
* @param _vh mesh vertex handle * @param _vh mesh vertex handle
*/ */
unsigned int getVertexColor(const typename Mesh::VertexHandle _vh); unsigned int getVertexColor(const typename Mesh::VertexHandle& _vh);
/** \brief return a face color from mesh /** \brief return a face color from mesh
* *
* @param _fh mesh face handle * @param _fh mesh face handle
*/ */
unsigned int getFaceColor(const typename Mesh::FaceHandle _fh); unsigned int getFaceColor(const typename Mesh::FaceHandle& _fh);
/** \brief eventually update vertex and index buffers /** \brief eventually update vertex and index buffers
* *
......
...@@ -753,9 +753,9 @@ DrawMeshT<Mesh>::rebuild() ...@@ -753,9 +753,9 @@ DrawMeshT<Mesh>::rebuild()
template <class Mesh> template <class Mesh>
void void
DrawMeshT<Mesh>::readVertex(size_t _vertex, DrawMeshT<Mesh>::readVertex(size_t _vertex,
const typename Mesh::VertexHandle _vh, const typename Mesh::VertexHandle& _vh,
const typename Mesh::HalfedgeHandle _hh, const typename Mesh::HalfedgeHandle& _hh,
const typename Mesh::FaceHandle _fh) const typename Mesh::FaceHandle& _fh)
{ {
static const typename Mesh::HalfedgeHandle invalidHEH(-1); static const typename Mesh::HalfedgeHandle invalidHEH(-1);
static const typename Mesh::FaceHandle invalidFH(-1); static const typename Mesh::FaceHandle invalidFH(-1);
...@@ -831,7 +831,7 @@ DrawMeshT<Mesh>::readVertex(size_t _vertex, ...@@ -831,7 +831,7 @@ DrawMeshT<Mesh>::readVertex(size_t _vertex,
template <class Mesh> template <class Mesh>
unsigned int unsigned int
DrawMeshT<Mesh>::getVertexColor(const typename Mesh::VertexHandle _vh) DrawMeshT<Mesh>::getVertexColor(const typename Mesh::VertexHandle& _vh)
{ {
static const typename Mesh::VertexHandle invalidVH(-1); static const typename Mesh::VertexHandle invalidVH(-1);
...@@ -853,7 +853,7 @@ DrawMeshT<Mesh>::getVertexColor(const typename Mesh::VertexHandle _vh) ...@@ -853,7 +853,7 @@ DrawMeshT<Mesh>::getVertexColor(const typename Mesh::VertexHandle _vh)
template <class Mesh> template <class Mesh>
unsigned int unsigned int
DrawMeshT<Mesh>::getFaceColor(const typename Mesh::FaceHandle _fh) DrawMeshT<Mesh>::getFaceColor(const typename Mesh::FaceHandle& _fh)
{ {
static const typename Mesh::FaceHandle invalidFH(-1); static const typename Mesh::FaceHandle invalidFH(-1);
......
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