diff --git a/source/RobotAPI/components/units/RobotUnit/ControlTargets/ControlTargetBase.h b/source/RobotAPI/components/units/RobotUnit/ControlTargets/ControlTargetBase.h index 74522e60bc1ac7c19a0981f1b3cd228e0cfd65d0..0283c00ab5ff77b626db90bf13217eb97dffbd39 100644 --- a/source/RobotAPI/components/units/RobotUnit/ControlTargets/ControlTargetBase.h +++ b/source/RobotAPI/components/units/RobotUnit/ControlTargets/ControlTargetBase.h @@ -106,7 +106,7 @@ namespace armarx }; #define DETAIL_ControlTargetBase_DEFAULT_METHOD_IMPLEMENTATION \ - virtual ControlTargetBase* _placementConstruct(void* place) const \ + virtual ControlTargetBase* _placementConstruct(void* place) const override \ { \ return new(place) std::decay<decltype(*this)>::type; \ } \ @@ -161,12 +161,12 @@ namespace armarx class DummyControlTarget##Suffix : public ControlTargetBase \ { \ public: \ - virtual const std::string& getControlMode() const \ + virtual const std::string& getControlMode() const override \ { \ return ControlMode; \ } \ - virtual void reset() {} \ - virtual bool isValid() const \ + virtual void reset() override {} \ + virtual bool isValid() const override \ { \ return true; \ } \ diff --git a/source/RobotAPI/components/units/RobotUnit/SensorValues/SensorValueBase.h b/source/RobotAPI/components/units/RobotUnit/SensorValues/SensorValueBase.h index 3c674ac4f83d1b20de47b3f2c0d7212735e588fd..50f09acea69d71ac4ef56eb8d7c651b9553574db 100644 --- a/source/RobotAPI/components/units/RobotUnit/SensorValues/SensorValueBase.h +++ b/source/RobotAPI/components/units/RobotUnit/SensorValues/SensorValueBase.h @@ -111,7 +111,7 @@ namespace armarx #define DETAIL_SensorValueBase_DEFAULT_METHOD_IMPLEMENTATION \ using SensorValueBase = ::armarx::SensorValueBase; \ using VariantBasePtr = ::armarx::VariantBasePtr; \ - virtual SensorValueBase* _placementConstruct(void* place) const \ + virtual SensorValueBase* _placementConstruct(void* place) const override \ { \ return new(place) std::decay<decltype(*this)>::type; \ } \