mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-11 17:13:56 -03:00
Rover: do not permit copying of a Mode
This commit is contained in:
parent
701d8588cc
commit
ca0374a7af
@ -37,6 +37,10 @@ public:
|
|||||||
// Constructor
|
// Constructor
|
||||||
Mode();
|
Mode();
|
||||||
|
|
||||||
|
// do not allow copying
|
||||||
|
Mode(const Mode &other) = delete;
|
||||||
|
Mode &operator=(const Mode&) = delete;
|
||||||
|
|
||||||
// enter this mode, returns false if we failed to enter
|
// enter this mode, returns false if we failed to enter
|
||||||
bool enter();
|
bool enter();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user