Change RobotState functions to return actual values (this time with nullptrs) [artf3611]

Change-Id: Icbe8fbf3d936ab696fed7f264bdf49b95d35c0de
This commit is contained in:
Brad Miller
2014-09-24 16:19:17 -04:00
parent 1bcdd301eb
commit 4904e1dc2c

View File

@@ -7,35 +7,35 @@ void RobotState::SetImplementation(RobotStateInterface* i) {
}
bool RobotState::IsDisabled() {
if (impl != 0) {
if (impl != nullptr) {
return impl->IsDisabled();
}
return true;
}
bool RobotState::IsEnabled() {
if (impl != 0) {
if (impl != nullptr) {
return impl->IsEnabled();
}
return false;
}
bool RobotState::IsOperatorControl() {
if (impl != 0) {
if (impl != nullptr) {
return impl->IsOperatorControl();
}
return true;
}
bool RobotState::IsAutonomous() {
if (impl != 0) {
if (impl != nullptr) {
return impl->IsAutonomous();
}
return false;
}
bool RobotState::IsTest() {
if (impl != 0) {
if (impl != nullptr) {
return impl->IsTest();
}
return false;