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:
Tyler Veness
2015-06-19 17:23:54 -07:00
parent c6b790cadd
commit 5598445a67
172 changed files with 1165 additions and 1140 deletions

View File

@@ -698,17 +698,17 @@ void RobotDrive::SetExpiration(float timeout)
// FIXME: m_safetyHelper->SetExpiration(timeout);
}
float RobotDrive::GetExpiration()
float RobotDrive::GetExpiration() const
{
return -1; // FIXME: return m_safetyHelper->GetExpiration();
}
bool RobotDrive::IsAlive()
bool RobotDrive::IsAlive() const
{
return true; // FIXME: m_safetyHelper->IsAlive();
}
bool RobotDrive::IsSafetyEnabled()
bool RobotDrive::IsSafetyEnabled() const
{
return false; // FIXME: return m_safetyHelper->IsSafetyEnabled();
}
@@ -718,7 +718,7 @@ void RobotDrive::SetSafetyEnabled(bool enabled)
// FIXME: m_safetyHelper->SetSafetyEnabled(enabled);
}
void RobotDrive::GetDescription(char *desc)
void RobotDrive::GetDescription(char *desc) const
{
sprintf(desc, "RobotDrive");
}