Commit 8c8ad188 authored by Jan Möbius's avatar Jan Möbius

Silence some cppcheck warnings

parent 6267eaa9
......@@ -2526,17 +2526,17 @@ public:
virtual ~ShaderModifierFile()
{}
void modifyVertexIO(ShaderGenerator* _shader) { modifyIO(0, _shader); }
void modifyTessControlIO(ShaderGenerator* _shader) { modifyIO(1, _shader); }
void modifyTessEvalIO(ShaderGenerator* _shader) { modifyIO(2, _shader); }
void modifyGeometryIO(ShaderGenerator* _shader) { modifyIO(3, _shader); }
void modifyFragmentIO(ShaderGenerator* _shader) { modifyIO(4, _shader); }
void modifyVertexIO(ShaderGenerator* _shader) override { modifyIO(0, _shader); }
void modifyTessControlIO(ShaderGenerator* _shader) override { modifyIO(1, _shader); }
void modifyTessEvalIO(ShaderGenerator* _shader) override { modifyIO(2, _shader); }
void modifyGeometryIO(ShaderGenerator* _shader) override { modifyIO(3, _shader); }
void modifyFragmentIO(ShaderGenerator* _shader) override { modifyIO(4, _shader); }
void modifyVertexBeginCode(QStringList* _code) { _code->append(vertexBeginCode_); }
void modifyVertexEndCode(QStringList* _code) { _code->append(vertexEndCode_); }
void modifyFragmentBeginCode(QStringList* _code) { _code->append(fragmentBeginCode_); }
void modifyFragmentEndCode(QStringList* _code) { _code->append(fragmentEndCode_); }
void modifyVertexBeginCode(QStringList* _code) override { _code->append(vertexBeginCode_); }
void modifyVertexEndCode(QStringList* _code) override { _code->append(vertexEndCode_); }
void modifyFragmentBeginCode(QStringList* _code) override { _code->append(fragmentBeginCode_); }
void modifyFragmentEndCode(QStringList* _code) override { _code->append(fragmentEndCode_); }
const QString& filename() const {return filename_;}
const QDateTime& filetime() const {return filetime_;}
......
......@@ -130,13 +130,13 @@ private slots:
protected:
/// handle new key events
virtual bool viewKeyPressEvent(QKeyEvent* /* _event */ ) { return false; }
virtual bool viewKeyPressEvent(QKeyEvent* /* _event */ ) override { return false; }
/// handle wheel events
virtual void viewWheelEvent(QWheelEvent* _event);
virtual void viewWheelEvent(QWheelEvent* _event) override;
/// handle mouse events
virtual void viewMouseEvent(QMouseEvent* _event);
virtual void viewMouseEvent(QMouseEvent* _event) override;
/// handle mouse events
virtual void lightMouseEvent(QMouseEvent* _event);
virtual void lightMouseEvent(QMouseEvent* _event) override;
protected:
......
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