mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
[wpilibc] Use default copies and moves when possible (#3381)
The removal of ErrorBase allowed the defaults to be used in more places.
This commit is contained in:
@@ -21,8 +21,6 @@ Command::~Command() {
|
||||
CommandScheduler::GetInstance().Cancel(this);
|
||||
}
|
||||
|
||||
Command::Command(const Command& rhs) = default;
|
||||
|
||||
Command& Command::operator=(const Command& rhs) {
|
||||
m_isGrouped = false;
|
||||
return *this;
|
||||
|
||||
@@ -50,8 +50,8 @@ class Command {
|
||||
Command() = default;
|
||||
virtual ~Command();
|
||||
|
||||
Command(const Command&);
|
||||
Command& operator=(const Command&);
|
||||
Command(const Command&) = default;
|
||||
Command& operator=(const Command& rhs);
|
||||
Command(Command&&) = default;
|
||||
Command& operator=(Command&&) = default;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user