AP_UAVCAN: add missing override keywords

This commit is contained in:
Peter Barker 2019-08-14 11:00:34 +10:00 committed by Peter Barker
parent 54b200a777
commit 13c22c667d
2 changed files with 6 additions and 6 deletions

View File

@ -77,7 +77,7 @@ public:
class AP_UAVCAN_FileEventTracer : public uavcan::dynamic_node_id_server::IEventTracer
{
protected:
virtual void onEvent(uavcan::dynamic_node_id_server::TraceCode code, uavcan::int64_t argument)
virtual void onEvent(uavcan::dynamic_node_id_server::TraceCode code, uavcan::int64_t argument) override
{
AP::logger().Write("UCEV", "TimeUS,code,arg", "s--", "F--", "Qhq", AP_HAL::micros64(), code, argument);
}
@ -129,7 +129,7 @@ class AP_UAVCAN_FileStorageBackend : public uavcan::dynamic_node_id_server::ISto
static uint8_t num_opens;
protected:
virtual String get(const String& key) const
virtual String get(const String& key) const override
{
using namespace std;
PathString path = base_path.c_str();
@ -176,7 +176,7 @@ protected:
return value;
}
virtual void set(const String& key, const String& value)
virtual void set(const String& key, const String& value) override
{
using namespace std;
PathString path = base_path.c_str();

View File

@ -68,19 +68,19 @@ private:
}
uavcan::UtcDuration utc_adjustment;
virtual void adjustUtc(uavcan::UtcDuration adjustment)
virtual void adjustUtc(uavcan::UtcDuration adjustment) override
{
utc_adjustment = adjustment;
}
public:
virtual uavcan::MonotonicTime getMonotonic() const
virtual uavcan::MonotonicTime getMonotonic() const override
{
uavcan::uint64_t usec = 0;
usec = AP_HAL::micros64();
return uavcan::MonotonicTime::fromUSec(usec);
}
virtual uavcan::UtcTime getUtc() const
virtual uavcan::UtcTime getUtc() const override
{
uavcan::UtcTime utc;
uavcan::uint64_t usec = 0;