diff options
author | Ansariel <ansariel.hiller@phoenixviewer.com> | 2024-07-01 11:52:47 +0200 |
---|---|---|
committer | Andrey Lihatskiy <alihatskiy@productengine.com> | 2024-07-01 17:58:45 +0300 |
commit | b9740dfc6e72d34d135fb9dafe7eed250e4e8b6e (patch) | |
tree | 969383d16d4cf34a5500422b7fabab4f10ea4f82 /indra/llui/llaccordionctrltab.cpp | |
parent | 1142c2c79b79802c47720b10130bd194b2a8abf1 (diff) |
Fix loop scope issue and rework some strange-looking loops
Diffstat (limited to 'indra/llui/llaccordionctrltab.cpp')
-rw-r--r-- | indra/llui/llaccordionctrltab.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/indra/llui/llaccordionctrltab.cpp b/indra/llui/llaccordionctrltab.cpp index 6d58a2545c..ac66525030 100644 --- a/indra/llui/llaccordionctrltab.cpp +++ b/indra/llui/llaccordionctrltab.cpp @@ -602,15 +602,13 @@ void LLAccordionCtrlTab::setSelected(bool is_selected) LLView* LLAccordionCtrlTab::findContainerView() { - child_list_const_iter_t it = getChildList()->begin(), it_end = getChildList()->end(); - while (it != it_end) + for (auto child : *getChildList()) { - LLView* child = *(it++); if (DD_HEADER_NAME != child->getName() && child->getVisible()) return child; } - return NULL; + return nullptr; } void LLAccordionCtrlTab::selectOnFocusReceived() |