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

@@ -135,7 +135,7 @@ void Relay::Set(Relay::Value value)
*
* @return The current state of the relay as a Relay::Value
*/
Relay::Value Relay::Get() {
Relay::Value Relay::Get() const {
// TODO: Don't assume that the go_pos and go_neg fields are correct?
if ((go_pos || m_direction == kReverseOnly) && (go_neg || m_direction == kForwardOnly)) {
return kOn;
@@ -184,7 +184,7 @@ void Relay::StopLiveWindowMode() {
}
}
std::string Relay::GetSmartDashboardType() {
std::string Relay::GetSmartDashboardType() const {
return "Relay";
}
@@ -193,6 +193,6 @@ void Relay::InitTable(ITable *subTable) {
UpdateTable();
}
ITable * Relay::GetTable() {
ITable * Relay::GetTable() const {
return m_table;
}