diff options
author | andreykproductengine <akleshchev@productengine.com> | 2014-09-16 16:49:50 +0300 |
---|---|---|
committer | andreykproductengine <akleshchev@productengine.com> | 2014-09-16 16:49:50 +0300 |
commit | ac23d948a483d9194c7d0daef440521c9f4b4b90 (patch) | |
tree | 42a1fece58844ea692e7b1aacc83c6951931372a /indra/llui | |
parent | eebb94159e061ec90e8dc1387a0de8f7a0733217 (diff) |
MAINT-4437 buildfix for linux - removed lambda expression
Diffstat (limited to 'indra/llui')
-rwxr-xr-x | indra/llui/llmenugl.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/indra/llui/llmenugl.cpp b/indra/llui/llmenugl.cpp index cb0b75ea48..31df853ab4 100755 --- a/indra/llui/llmenugl.cpp +++ b/indra/llui/llmenugl.cpp @@ -2114,10 +2114,13 @@ void LLMenuGL::arrange( void ) && height + (*item_iter)->getNominalHeight() > max_height - spillover_item_height) { // don't show only one item - int visible_items = std::count_if(item_iter, mItems.end(), [](LLMenuItemGL* itemp) + int visible_items = 0; + item_list_t::iterator count_iter; + for (count_iter = item_iter; count_iter != mItems.end(); ++count_iter) { - return itemp->getVisible(); - }); + if((*count_iter)->getVisible()) + visible_items++; + } if (visible_items>1) { // no room for any more items |