| 10087 | |
| 10088 | |
| 10089 | GuiControlType *GuiType::FindTabControl(TabControlIndexType aTabControlIndex) |
| 10090 | { |
| 10091 | if (aTabControlIndex == MAX_TAB_CONTROLS) |
| 10092 | // This indicates it's not a member of a tab control. Callers rely on this check. |
| 10093 | return NULL; |
| 10094 | TabControlIndexType tab_control_index = 0; |
| 10095 | for (GuiIndexType u = 0; u < mControlCount; ++u) |
| 10096 | if (mControl[u]->type == GUI_CONTROL_TAB) |
| 10097 | if (tab_control_index == aTabControlIndex) |
| 10098 | return mControl[u]; |
| 10099 | else |
| 10100 | ++tab_control_index; |
| 10101 | return NULL; // Since above didn't return, indicate failure. |
| 10102 | } |
| 10103 | |
| 10104 | |
| 10105 |
no outgoing calls
no test coverage detected