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

@@ -43,7 +43,7 @@ DigitalInput::~DigitalInput()
* Get the value from a digital input channel.
* Retrieve the value of a single digital input channel from the FPGA.
*/
uint32_t DigitalInput::Get()
uint32_t DigitalInput::Get() const
{
return m_impl->Get();
}
@@ -51,7 +51,7 @@ uint32_t DigitalInput::Get()
/**
* @return The GPIO channel number that this object represents.
*/
uint32_t DigitalInput::GetChannel()
uint32_t DigitalInput::GetChannel() const
{
return m_channel;
}
@@ -70,7 +70,7 @@ void DigitalInput::StopLiveWindowMode() {
}
std::string DigitalInput::GetSmartDashboardType() {
std::string DigitalInput::GetSmartDashboardType() const {
return "DigitalInput";
}
@@ -79,6 +79,6 @@ void DigitalInput::InitTable(ITable *subTable) {
UpdateTable();
}
ITable * DigitalInput::GetTable() {
ITable * DigitalInput::GetTable() const {
return m_table;
}