mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41: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:
@@ -184,7 +184,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 {
|
||||
int32_t status;
|
||||
|
||||
if(getRelayForward(m_relay_ports[m_channel], &status)) {
|
||||
@@ -249,7 +249,7 @@ void Relay::StopLiveWindowMode() {
|
||||
}
|
||||
}
|
||||
|
||||
std::string Relay::GetSmartDashboardType() {
|
||||
std::string Relay::GetSmartDashboardType() const {
|
||||
return "Relay";
|
||||
}
|
||||
|
||||
@@ -258,6 +258,6 @@ void Relay::InitTable(ITable *subTable) {
|
||||
UpdateTable();
|
||||
}
|
||||
|
||||
ITable * Relay::GetTable() {
|
||||
ITable * Relay::GetTable() const {
|
||||
return m_table;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user