diff options
author | Callum Linden <callum@lindenlab.com> | 2022-08-29 10:14:06 -0700 |
---|---|---|
committer | Callum Linden <callum@lindenlab.com> | 2022-08-29 10:14:06 -0700 |
commit | a3f7f7d8c08e19d338911e107707f756469716bc (patch) | |
tree | c86773c81cbcb03300132eb684134b878aeca357 /indra/newview/llfavoritesbar.cpp | |
parent | 35de5fc912c908fb1c3c5257f28e72ffebe796c4 (diff) | |
parent | 592abc460c96b63b1b1e0d15914f7b64a0c88038 (diff) |
Merge remote-tracking branch 'origin/more-c++17' into DRTVWR-568
Diffstat (limited to 'indra/newview/llfavoritesbar.cpp')
-rw-r--r-- | indra/newview/llfavoritesbar.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llfavoritesbar.cpp b/indra/newview/llfavoritesbar.cpp index a02bb56489..4f2769a507 100644 --- a/indra/newview/llfavoritesbar.cpp +++ b/indra/newview/llfavoritesbar.cpp @@ -848,8 +848,11 @@ void LLFavoritesBarCtrl::updateButtons(bool force_update) if (getChildList()->size() > 0) { //find last visible child to get the rightest button offset - child_list_const_reverse_iter_t last_visible_it = std::find_if(childs->rbegin(), childs->rend(), - std::mem_fun(&LLView::getVisible)); + child_list_const_reverse_iter_t last_visible_it = + std::find_if( + childs->rbegin(), childs->rend(), + [](const child_list_t::value_type& child) + { return child->getVisible(); }); if(last_visible_it != childs->rend()) { last_right_edge = (*last_visible_it)->getRect().mRight; |