History

add -Wsuggest-override to compile flags and deal with fallout

Seth Alves committed 10 years ago

Commit 87dbfa71 parent 89df576122 files · +768 −732Browse files

Showing the changes to interface/src/scripting/ControllerScriptingInterface.h (1 of 122 files). Show all

Unified · Split

interface/src/scripting/ControllerScriptingInterface.h+7−7
@@ -33,16 +33,16 @@ class InputController : public controller::InputController { · 32 unmodified lines
3333 public:
3434 InputController(int deviceTrackerId, int subTrackerId, QObject* parent = NULL);
3535
36− virtual void update();
37− virtual Key getKey() const;
36+ virtual void update() override;
37+ virtual Key getKey() const override;
3838
3939 public slots:
4040
41− virtual bool isActive() const { return _isActive; }
42− virtual glm::vec3 getAbsTranslation() const { return _eventCache.absTranslation; }
43− virtual glm::quat getAbsRotation() const { return _eventCache.absRotation; }
44− virtual glm::vec3 getLocTranslation() const { return _eventCache.locTranslation; }
45− virtual glm::quat getLocRotation() const { return _eventCache.locRotation; }
41+ virtual bool isActive() const override { return _isActive; }
42+ virtual glm::vec3 getAbsTranslation() const override { return _eventCache.absTranslation; }
43+ virtual glm::quat getAbsRotation() const override { return _eventCache.absRotation; }
44+ virtual glm::vec3 getLocTranslation() const override { return _eventCache.locTranslation; }
45+ virtual glm::quat getLocRotation() const override { return _eventCache.locRotation; }
4646
4747 private:
4848