mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
Improve const correctness.
See https://usfirst.collab.net/sf/tracker/do/viewArtifact/projects.wpilib/tracker.4_defects/artf4148 Change-Id: I47b0d5a91fd49e47e2c7348b0705e998ec815682
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
class CommandTest : public testing::Test {
|
||||
protected:
|
||||
virtual void SetUp() {
|
||||
virtual void SetUp() override {
|
||||
RobotState::SetImplementation(DriverStation::GetInstance());
|
||||
Scheduler::GetInstance()->SetEnabled(true);
|
||||
}
|
||||
@@ -49,7 +49,7 @@ public:
|
||||
m_command = NULL;
|
||||
}
|
||||
|
||||
virtual void InitDefaultCommand(){
|
||||
virtual void InitDefaultCommand() override {
|
||||
if(m_command != NULL){
|
||||
SetDefaultCommand(m_command);
|
||||
}
|
||||
@@ -334,7 +334,7 @@ public:
|
||||
{
|
||||
SetTimeout(2.0);
|
||||
}
|
||||
bool IsFinished(){
|
||||
bool IsFinished() override {
|
||||
return MockCommand::IsFinished() || IsTimedOut();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user