mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21: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:
@@ -114,7 +114,7 @@ void Subsystem::SetCurrentCommand(Command *command)
|
||||
* Returns the command which currently claims this subsystem.
|
||||
* @return the command which currently claims this subsystem
|
||||
*/
|
||||
Command *Subsystem::GetCurrentCommand()
|
||||
Command *Subsystem::GetCurrentCommand() const
|
||||
{
|
||||
return m_currentCommand;
|
||||
}
|
||||
@@ -150,7 +150,7 @@ std::string Subsystem::GetName()
|
||||
return m_name;
|
||||
}
|
||||
|
||||
std::string Subsystem::GetSmartDashboardType()
|
||||
std::string Subsystem::GetSmartDashboardType() const
|
||||
{
|
||||
return "Subsystem";
|
||||
}
|
||||
@@ -174,6 +174,6 @@ void Subsystem::InitTable(ITable* table)
|
||||
}
|
||||
}
|
||||
|
||||
ITable* Subsystem::GetTable(){
|
||||
ITable* Subsystem::GetTable() const {
|
||||
return m_table;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user