More C++11 cleanups, mostly from alchemy

This commit is contained in:
Lirusaito
2016-02-22 22:47:01 -05:00
parent 6a95f3b692
commit d15ac7640c
11 changed files with 89 additions and 98 deletions

View File

@@ -65,7 +65,7 @@
#include "rlvhandler.h"
// [/RLVa:KB]
#include <boost/foreach.hpp>
#include <boost/range/adaptor/reversed.hpp>
//
// Globals
@@ -244,7 +244,7 @@ void LLOverlayBar::layoutButtons()
{
U32 button_count = 0;
const child_list_t& view_list = *(mStateManagementContainer->getChildList());
BOOST_FOREACH(LLView* viewp, view_list)
for (LLView* viewp : view_list)
{
if(!viewp->getEnabled())
continue;
@@ -264,7 +264,7 @@ void LLOverlayBar::layoutButtons()
S32 left = 0;
S32 bottom = 1;
BOOST_REVERSE_FOREACH(LLView* viewp, view_list)
for (LLView* viewp : boost::adaptors::reverse(view_list))
{
if(!viewp->getEnabled())
continue;