clang-tidy: modernize-use-equals-default

This commit is contained in:
Peter Johnson
2020-12-28 00:37:33 -08:00
parent b124f9101b
commit 67e03e625d
30 changed files with 51 additions and 51 deletions

View File

@@ -29,7 +29,7 @@ ShuffleboardInstance::ShuffleboardInstance(nt::NetworkTableInstance ntInstance)
HAL_Report(HALUsageReporting::kResourceType_Shuffleboard, 0);
}
ShuffleboardInstance::~ShuffleboardInstance() {}
ShuffleboardInstance::~ShuffleboardInstance() = default;
frc::ShuffleboardTab& ShuffleboardInstance::GetTab(wpi::StringRef title) {
if (m_impl->tabs.find(title) == m_impl->tabs.end()) {

View File

@@ -220,7 +220,7 @@ RobotBase::RobotBase() : m_ds(DriverStation::GetInstance()) {
RobotBase::RobotBase(RobotBase&&) noexcept
: m_ds(DriverStation::GetInstance()) {}
RobotBase::~RobotBase() {}
RobotBase::~RobotBase() = default;
RobotBase& RobotBase::operator=(RobotBase&&) noexcept {
return *this;