mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 09:03:34 +08:00
Explicit virtual keyword
This commit is contained in:
@@ -41,7 +41,7 @@ class UAVCAN_EXPORT TimerBase : private DeadlineHandler
|
||||
{
|
||||
MonotonicDuration period_;
|
||||
|
||||
void handleDeadline(MonotonicTime current);
|
||||
virtual void handleDeadline(MonotonicTime current);
|
||||
|
||||
public:
|
||||
using DeadlineHandler::stop;
|
||||
@@ -73,7 +73,7 @@ public:
|
||||
private:
|
||||
Callback callback_;
|
||||
|
||||
void handleTimerEvent(const TimerEvent& event)
|
||||
virtual void handleTimerEvent(const TimerEvent& event)
|
||||
{
|
||||
if (try_implicit_cast<bool>(callback_, true))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user