mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-03 21:48:48 +00:00
tlist: remove ancient foreach.hpp include and use BOOST_FOREACH instead
This commit is contained in:
parent
4346856ed2
commit
2f88db8b9f
@ -18,7 +18,6 @@
|
||||
|
||||
#include "gui/widgets/list.hpp"
|
||||
|
||||
#include "foreach.hpp"
|
||||
#include "gui/auxiliary/log.hpp"
|
||||
#include "gui/auxiliary/widget_definition/listbox.hpp"
|
||||
#include "gui/auxiliary/window_builder/listbox.hpp"
|
||||
@ -27,6 +26,7 @@
|
||||
#include "gui/widgets/window.hpp"
|
||||
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
#define LOG_SCOPE_HEADER get_control_type() + " [" + id() + "] " + __func__
|
||||
#define LOG_HEADER LOG_SCOPE_HEADER + ':'
|
||||
@ -120,7 +120,7 @@ tlist::add_row(const std::map<std::string /* widget id */, string_map>& data,
|
||||
|
||||
void tlist::append_rows(const std::vector<string_map>& items)
|
||||
{
|
||||
foreach(const string_map & item, items)
|
||||
BOOST_FOREACH(const string_map & item, items)
|
||||
{
|
||||
add_row(item);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user