mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 15:13:34 +08:00
Add override keyword to those methods requiring it
This commit is contained in:
@@ -126,7 +126,7 @@ protected:
|
||||
const ServiceCallID id_;
|
||||
bool timed_out_;
|
||||
|
||||
virtual void handleDeadline(MonotonicTime);
|
||||
virtual void handleDeadline(MonotonicTime) override;
|
||||
|
||||
public:
|
||||
CallState(INode& node, ServiceClientBase& owner, ServiceCallID call_id)
|
||||
@@ -262,13 +262,13 @@ private:
|
||||
PublisherType publisher_;
|
||||
Callback callback_;
|
||||
|
||||
virtual bool shouldAcceptFrame(const RxFrame& frame) const; // Called from the transfer listener
|
||||
virtual bool shouldAcceptFrame(const RxFrame& frame) const override; // Called from the transfer listener
|
||||
|
||||
void invokeCallback(ServiceCallResultType& result);
|
||||
|
||||
virtual void handleReceivedDataStruct(ReceivedDataStructure<ResponseType>& response);
|
||||
virtual void handleReceivedDataStruct(ReceivedDataStructure<ResponseType>& response) override;
|
||||
|
||||
virtual void handleDeadline(MonotonicTime);
|
||||
virtual void handleDeadline(MonotonicTime) override;
|
||||
|
||||
int addCallState(ServiceCallID call_id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user