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

@@ -329,7 +329,7 @@ bool CommandGroup::IsFinished()
return (unsigned)m_currentCommandIndex >= m_commands.size() && m_children.empty();
}
bool CommandGroup::IsInterruptible()
bool CommandGroup::IsInterruptible() const
{
if (!Command::IsInterruptible())
return false;
@@ -341,8 +341,8 @@ bool CommandGroup::IsInterruptible()
return false;
}
CommandList::iterator iter = m_children.begin();
for (; iter != m_children.end(); iter++)
CommandList::const_iterator iter = m_children.cbegin();
for (; iter != m_children.cend(); iter++)
{
if (!iter->m_command->IsInterruptible())
return false;
@@ -377,7 +377,7 @@ void CommandGroup::CancelConflicts(Command *command)
}
}
int CommandGroup::GetSize()
int CommandGroup::GetSize() const
{
return m_children.size();
}