mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[commands] Make Subsystem destructor virtual (#4892)
C++ best practice if there are other functions that are virtual.
This commit is contained in:
@@ -38,7 +38,7 @@ class CommandPtr;
|
||||
*/
|
||||
class Subsystem {
|
||||
public:
|
||||
~Subsystem();
|
||||
virtual ~Subsystem();
|
||||
/**
|
||||
* This method is called periodically by the CommandScheduler. Useful for
|
||||
* updating subsystem-specific state that you don't want to offload to a
|
||||
|
||||
Reference in New Issue
Block a user