From 49e079ee45b14b3774124064e3c8c88b136982cc Mon Sep 17 00:00:00 2001 From: Mark de Wever Date: Sat, 9 Feb 2013 16:12:53 +0000 Subject: [PATCH] Replace BOOST_FOREACH with FOREACH. --- src/gui/widgets/tree_view_node.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/gui/widgets/tree_view_node.cpp b/src/gui/widgets/tree_view_node.cpp index 53db7240d3d..895e7d2ea3c 100644 --- a/src/gui/widgets/tree_view_node.cpp +++ b/src/gui/widgets/tree_view_node.cpp @@ -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 -#include #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 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); } }