use override instead of virtual as recommended

This commit is contained in:
Robin Müller 2022-06-08 17:36:20 +02:00
parent cb8a4bbbec
commit a0ee86ace8
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -50,11 +50,11 @@ class FixedTimeslotTaskIF : public PeriodicTaskIF {
*/ */
virtual ReturnValue_t checkSequence() = 0; virtual ReturnValue_t checkSequence() = 0;
virtual ReturnValue_t addComponent(object_id_t object, uint8_t opCode) { ReturnValue_t addComponent(object_id_t object, uint8_t opCode) override {
return HasReturnvaluesIF::RETURN_FAILED; return HasReturnvaluesIF::RETURN_FAILED;
} }
virtual ReturnValue_t addComponent(ExecutableObjectIF* object, uint8_t opCode) { ReturnValue_t addComponent(ExecutableObjectIF* object, uint8_t opCode) override {
return HasReturnvaluesIF::RETURN_FAILED; return HasReturnvaluesIF::RETURN_FAILED;
} }
}; };