Replace BOOST_FOREACH with FOREACH.

This commit is contained in:
Mark de Wever 2013-02-09 16:12:53 +00:00
parent c29f20cea5
commit 49e079ee45

View file

@ -22,9 +22,9 @@
#include "gui/widgets/toggle_button.hpp"
#include "gui/widgets/toggle_panel.hpp"
#include "gui/widgets/tree_view.hpp"
#include "utils/foreach.tpp"
#include <boost/bind.hpp>
#include <boost/foreach.hpp>
#define LOG_SCOPE_HEADER \
get_control_type() + " [" + tree_view().id() + "] " + __func__
@ -49,7 +49,7 @@ ttree_view_node::ttree_view_node(const std::string& id
grid_.set_parent(this);
set_parent(&parent_tree_view);
if(id != "root") {
BOOST_FOREACH(const tnode_definition& node_definition, node_definitions_) {
FOREACH(const AUTO& node_definition, node_definitions_) {
if(node_definition.id == id) {
node_definition.builder->build(&grid_);
init_grid(&grid_, data);
@ -218,7 +218,7 @@ void ttree_view_node::clear()
int height_reduction = 0;
if(!is_folded()) {
BOOST_FOREACH(const ttree_view_node& node, children_) {
FOREACH(const AUTO& node, children_) {
height_reduction += node.get_current_size().y;
}
}
@ -301,7 +301,7 @@ void ttree_view_node::impl_populate_dirty_list(twindow& caller
return;
}
BOOST_FOREACH(ttree_view_node& node, children_) {
FOREACH(AUTO& node, children_) {
std::vector<twidget*> child_call_stack = call_stack;
node.impl_populate_dirty_list(caller, child_call_stack);
}
@ -456,7 +456,7 @@ unsigned ttree_view_node::place(
}
DBG_GUI_L << LOG_HEADER << " set children.\n";
BOOST_FOREACH(ttree_view_node& node, children_) {
FOREACH(AUTO& node, children_) {
origin.y += node.place(indention_step_size, origin, width);
}
@ -478,7 +478,7 @@ void ttree_view_node::set_visible_area(const SDL_Rect& area)
return;
}
BOOST_FOREACH(ttree_view_node& node, children_) {
FOREACH(AUTO& node, children_) {
node.set_visible_area(area);
}
}
@ -491,7 +491,7 @@ void ttree_view_node::impl_draw_children(surface& frame_buffer)
return;
}
BOOST_FOREACH(ttree_view_node& node, children_) {
FOREACH(AUTO& node, children_) {
node.impl_draw_children(frame_buffer);
}
}
@ -507,7 +507,7 @@ void ttree_view_node::impl_draw_children(
return;
}
BOOST_FOREACH(ttree_view_node& node, children_) {
FOREACH(AUTO& node, children_) {
node.impl_draw_children(frame_buffer, x_offset, y_offset);
}
}