mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +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:
@@ -65,7 +65,7 @@ void Solenoid::Set(bool on)
|
||||
*
|
||||
* @return The current value of the solenoid.
|
||||
*/
|
||||
bool Solenoid::Get()
|
||||
bool Solenoid::Get() const
|
||||
{
|
||||
return m_on;
|
||||
}
|
||||
@@ -95,7 +95,7 @@ void Solenoid::StopLiveWindowMode() {
|
||||
}
|
||||
}
|
||||
|
||||
std::string Solenoid::GetSmartDashboardType() {
|
||||
std::string Solenoid::GetSmartDashboardType() const {
|
||||
return "Solenoid";
|
||||
}
|
||||
|
||||
@@ -104,6 +104,6 @@ void Solenoid::InitTable(ITable *subTable) {
|
||||
UpdateTable();
|
||||
}
|
||||
|
||||
ITable * Solenoid::GetTable() {
|
||||
ITable * Solenoid::GetTable() const {
|
||||
return m_table;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user