mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 03:43:34 +08:00
Explicit virtual keyword
This commit is contained in:
@@ -46,7 +46,7 @@ class UAVCAN_EXPORT GlobalTimeSyncMaster : protected LoopbackFrameListenerBase
|
||||
DataTypeID dtid_;
|
||||
bool initialized_;
|
||||
|
||||
void handleLoopbackFrame(const RxFrame& frame);
|
||||
virtual void handleLoopbackFrame(const RxFrame& frame);
|
||||
|
||||
int getNextTransferID(TransferID& tid);
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ private:
|
||||
|
||||
void handleNodeStatus(const ReceivedDataStructure<protocol::NodeStatus>& msg);
|
||||
|
||||
void handleTimerEvent(const TimerEvent&);
|
||||
virtual void handleTimerEvent(const TimerEvent&);
|
||||
|
||||
protected:
|
||||
/**
|
||||
|
||||
@@ -40,7 +40,7 @@ class UAVCAN_EXPORT NodeStatusProvider : private TimerBase
|
||||
int publish();
|
||||
void publishWithErrorHandling();
|
||||
|
||||
void handleTimerEvent(const TimerEvent&);
|
||||
virtual void handleTimerEvent(const TimerEvent&);
|
||||
void handleGlobalDiscoveryRequest(const protocol::GlobalDiscoveryRequest&);
|
||||
void handleGetNodeInfoRequest(const protocol::GetNodeInfo::Request&, protocol::GetNodeInfo::Response& rsp);
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ class UAVCAN_EXPORT PanicBroadcaster : private TimerBase
|
||||
|
||||
void publishOnce();
|
||||
|
||||
void handleTimerEvent(const TimerEvent&);
|
||||
virtual void handleTimerEvent(const TimerEvent&);
|
||||
|
||||
public:
|
||||
explicit PanicBroadcaster(INode& node)
|
||||
|
||||
Reference in New Issue
Block a user