mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-06 14:18:52 +08:00
clang-tidy: partially fix hicpp-use-override
This commit is contained in:
@@ -87,11 +87,11 @@ class GPSSIM : public VirtDevObj
|
||||
public:
|
||||
GPSSIM(bool fake_gps, bool enable_sat_info,
|
||||
int fix_type, int num_sat, int noise_multiplier);
|
||||
virtual ~GPSSIM();
|
||||
~GPSSIM() override;
|
||||
|
||||
virtual int init();
|
||||
int init() override;
|
||||
|
||||
virtual int devIOCTL(unsigned long cmd, unsigned long arg);
|
||||
int devIOCTL(unsigned long cmd, unsigned long arg) override;
|
||||
|
||||
void set(int fix_type, int num_sat, int noise_multiplier);
|
||||
|
||||
@@ -101,7 +101,7 @@ public:
|
||||
void print_info();
|
||||
|
||||
protected:
|
||||
virtual void _measure() {}
|
||||
void _measure() override {}
|
||||
|
||||
private:
|
||||
|
||||
|
||||
@@ -63,13 +63,13 @@ class LED : public VirtDevObj
|
||||
{
|
||||
public:
|
||||
LED();
|
||||
virtual ~LED() = default;
|
||||
~LED() override = default;
|
||||
|
||||
virtual int init();
|
||||
virtual int devIOCTL(unsigned long cmd, unsigned long arg);
|
||||
int init() override;
|
||||
int devIOCTL(unsigned long cmd, unsigned long arg) override;
|
||||
|
||||
protected:
|
||||
virtual void _measure() {}
|
||||
void _measure() override {}
|
||||
};
|
||||
|
||||
LED::LED() :
|
||||
|
||||
Reference in New Issue
Block a user