Skip to content
Snippets Groups Projects
Commit 551a177e authored by Raphael Grimm's avatar Raphael Grimm
Browse files

Add override to macros

parent 936157e4
No related branches found
No related tags found
No related merge requests found
......@@ -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; \
} \
......
......@@ -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; \
} \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment