Commit 452ae04e authored by Jan Möbius's avatar Jan Möbius

More cppcheck warnings

parent f818daac
......@@ -251,7 +251,7 @@ class DrawMeshFaceInput : public MeshCompilerFaceInput
public:
DrawMeshFaceInput(Mesh& _mesh) :
explicit DrawMeshFaceInput(Mesh& _mesh) :
mesh_(_mesh)
{
};
......
......@@ -319,7 +319,7 @@ public:
*
* @param _numSamples number of kernel samples
*/
RadialBlurFilter(int _numSamples);
explicit RadialBlurFilter(int _numSamples);
/// Class destructor
virtual ~RadialBlurFilter() {}
......@@ -419,4 +419,4 @@ private:
}
\ No newline at end of file
}
......@@ -78,7 +78,7 @@ namespace ACG {
class ACGDLLEXPORT GLFormatInfo
{
public:
GLFormatInfo(GLenum _internalFormat);
explicit GLFormatInfo(GLenum _internalFormat);
GLFormatInfo();
~GLFormatInfo();
......
......@@ -80,7 +80,7 @@ class ACGDLLEXPORT GLTrackball
{
public:
GLTrackball(GLState& _state);
explicit GLTrackball(GLState& _state);
~GLTrackball() {}
void set_center(const Vec3f& _center) { center_ = _center; }
......
......@@ -813,7 +813,7 @@ void IRenderer::clearInputFbo( const ACG::Vec4f& clearColor )
namespace {
struct RenderObjectComparator {
RenderObjectComparator(const std::vector<ACG::RenderObject>& _vec) : vec_(_vec) {
explicit RenderObjectComparator(const std::vector<ACG::RenderObject>& _vec) : vec_(_vec) {
}
bool operator() (int a, int b) {
......
......@@ -247,7 +247,7 @@ class ACGDLLEXPORT MeshCompiler
{
public:
MeshCompiler(const VertexDeclaration& _decl);
explicit MeshCompiler(const VertexDeclaration& _decl);
virtual ~MeshCompiler();
......
......@@ -84,7 +84,7 @@ class ACGDLLEXPORT PBuffer
public:
/// Default constructor
PBuffer(int _bits);
explicit PBuffer(int _bits);
/** Constructor with arguments for pbuffer dimension.
\param _w specifies the pbuffer's width in pixel.
......
......@@ -71,7 +71,7 @@ public:
*
* @param _pos polygon vertex positions (ccw)
*/
Triangulator(const std::vector<Vec3f>& _pos);
explicit Triangulator(const std::vector<Vec3f>& _pos);
/** \brief Destructor
*/
......
......@@ -96,7 +96,7 @@ public:
{};
/// construct with QGLcontext
QtColorTranslator(QGLContext& _context)
explicit QtColorTranslator(QGLContext& _context)
{ initialize(_context); }
/// Destructor.
......
......@@ -82,7 +82,7 @@ class QtGLGraphicsScene : public QGraphicsScene
Q_OBJECT
public:
QtGLGraphicsScene(QtBaseViewer* _w);
explicit QtGLGraphicsScene(QtBaseViewer* _w);
protected:
friend class QtBaseViewer;
......
......@@ -89,7 +89,7 @@ class ACGDLLEXPORT QtLasso : public QObject
public:
QtLasso(GLState& _glstate);
explicit QtLasso(GLState& _glstate);
~QtLasso();
void reset() { is_active_ = false; free_mask(); }
......
......@@ -62,7 +62,7 @@ class ACGDLLEXPORT QtLessAnnoyingDoubleSpinBox : public QDoubleSpinBox
public:
QtLessAnnoyingDoubleSpinBox(QWidget* _qwidget = Q_NULLPTR );
explicit QtLessAnnoyingDoubleSpinBox(QWidget* _qwidget = Q_NULLPTR );
virtual QValidator::State validate(QString& text, int&) const override;
......
......@@ -175,7 +175,7 @@ private:
// vec4 g_SlicePlane1;
// ..
ClippingShaderModifier(int _numClipPlanes);
explicit ClippingShaderModifier(int _numClipPlanes);
virtual ~ClippingShaderModifier() {}
void modifyVertexIO(ShaderGenerator* _shader);
......@@ -190,7 +190,7 @@ private:
class ClippingObjectModifier : public RenderObjectModifier
{
public:
ClippingObjectModifier(const ClippingNode* _node);
explicit ClippingObjectModifier(const ClippingNode* _node);
virtual ~ClippingObjectModifier() {}
void apply(RenderObject* _obj);
......
......@@ -77,7 +77,7 @@ namespace GLSL {
class ACGDLLEXPORT Shader {
public:
Shader(GLenum shaderType);
explicit Shader(GLenum shaderType);
virtual ~Shader();
void setSource(const StringList& source);
void setSource(const QStringList& source);
......
......@@ -59,7 +59,7 @@
class SBFReader : public ACG::MeshCompilerDefaultFaceInput
{
public:
SBFReader(const char* szObjFile);
explicit SBFReader(const char* szObjFile);
virtual ~SBFReader(void) {}
int getNumVertices() {return m_Vertices.size() / 3;}
......
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