diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2022-11-22 23:11:29 +0200 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2022-11-22 23:12:05 +0200 |
commit | de0317cc3f5f42ccf51a7bbfdd04e8b16d51e811 (patch) | |
tree | 36b368602ac3aa1bdf9df97a0fb65c92767f457f /indra/newview/llfavoritesbar.cpp | |
parent | daa1257466ee3cf000e2c94ef05259577ea513b4 (diff) | |
parent | 395a60a83e954e9bcbb44dc6f1a49319b2d628b7 (diff) |
Merge branch 'DRTVWR-568' into DRTVWR-539
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 70e8437190..cdce6f7156 100644 --- a/indra/newview/llfavoritesbar.cpp +++ b/indra/newview/llfavoritesbar.cpp @@ -878,8 +878,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; |