| 823 | sp<Control> Control::operator[](int Index) const { return Controls.at(Index); } |
| 824 | |
| 825 | sp<Control> Control::findControl(UString ID) const |
| 826 | { |
| 827 | for (auto c = Controls.begin(); c != Controls.end(); c++) |
| 828 | { |
| 829 | auto ctrl = *c; |
| 830 | if (ctrl->Name == ID) |
| 831 | { |
| 832 | return ctrl; |
| 833 | } |
| 834 | auto childControl = ctrl->findControl(ID); |
| 835 | if (childControl) |
| 836 | return childControl; |
| 837 | } |
| 838 | return nullptr; |
| 839 | } |
| 840 | |
| 841 | bool Control::replaceChildByName(sp<Control> ctrl) |
| 842 | { |
no test coverage detected