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

More cppcheck warnings

parent a2217110
......@@ -185,7 +185,7 @@ private:
public:
DrawMeshT(Mesh& _mesh);
explicit DrawMeshT(Mesh& _mesh);
virtual ~DrawMeshT();
void disableColors() {colorMode_ = 0;}
......
......@@ -2329,7 +2329,6 @@ void ShaderProgGenerator::scanShaderTemplate(QStringList& _templateSrc, QString
// scan and adjust glsl version
QByteArray lineBytes = trimmedLine.toUtf8();
int templateVersion = 0;
if (trimmedLine.startsWith("#version "))
{
QStringList tokens = trimmedLine.split(' ');
......@@ -2338,7 +2337,7 @@ void ShaderProgGenerator::scanShaderTemplate(QStringList& _templateSrc, QString
{
// templateVersion
bool convOk = false;
templateVersion = tokens.at(1).toInt(&convOk);
int templateVersion = tokens.at(1).toInt(&convOk);
if (convOk)
{
......
......@@ -93,7 +93,7 @@ public: //---------------------------------------------------------------------
/** Constructor: need traits that define the types and
give us the points by traits_.point(PointHandle) */
TriangleBSPCoreT(const BSPTraits& _traits) : traits_(_traits), root_(0), nodes(0), n_triangles(0) {}
explicit TriangleBSPCoreT(const BSPTraits& _traits) : traits_(_traits), root_(0), nodes(0), n_triangles(0) {}
/// Destructor
~TriangleBSPCoreT() {
......
......@@ -93,7 +93,7 @@ public:
typedef typename Handles::iterator HandleIter;
typedef TreeNode<SpecificTraits> Node;
OVMOMCommonTriangleBSPTraits(const Mesh& _mesh) : SpecificTraits(_mesh) {}
explicit OVMOMCommonTriangleBSPTraits(const Mesh& _mesh) : SpecificTraits(_mesh) {}
Scalar sqrdist(const Handle _h, const Point& _p) const
{
......@@ -195,7 +195,7 @@ public:
typedef typename Mesh::Point Point;
typedef typename Mesh::FaceHandle Handle;
typedef typename Mesh::VertexHandle VertexHandle;
OMSpecificTriangleBSPTraits(const Mesh& _mesh) : mesh_(_mesh) {}
explicit OMSpecificTriangleBSPTraits(const Mesh& _mesh) : mesh_(_mesh) {}
/// Returns the points belonging to the face handle _h
inline void points(const Handle &_h, Point& _p0, Point& _p1, Point& _p2) const
......@@ -248,7 +248,7 @@ public:
typedef typename Mesh::PointT Point;
typedef OpenVolumeMesh::FaceHandle Handle;
typedef OpenVolumeMesh::VertexHandle VertexHandle;
OVMSpecificTriangleBSPTraits(const Mesh& _mesh) : mesh_(_mesh) {}
explicit OVMSpecificTriangleBSPTraits(const Mesh& _mesh) : mesh_(_mesh) {}
/// Returns the points belonging to the face handle _h
inline void points(const Handle &_h, Point& _p0, Point& _p1, Point& _p2) const
......
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