LLPanel *LLPanel::childGetVisiblePanelWithHelp() { LLView *child; bfs_tree_iterator_t it = beginTreeBFS(); // skip ourselves ++it; for (; it != endTreeBFS(); ++it) { child = *it; // do we have a panel with a help topic? LLPanel *panel = dynamic_cast<LLPanel *>(child); if (panel && panel->isInVisibleChain() && !panel->getHelpTopic().empty()) { return panel; } } // couldn't find any active panels with a help topic string return NULL; }