summaryrefslogtreecommitdiff
path: root/games-strategy/widelands/files/widelands-0.20-boost-1.73.patch
diff options
context:
space:
mode:
Diffstat (limited to 'games-strategy/widelands/files/widelands-0.20-boost-1.73.patch')
-rw-r--r--games-strategy/widelands/files/widelands-0.20-boost-1.73.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/games-strategy/widelands/files/widelands-0.20-boost-1.73.patch b/games-strategy/widelands/files/widelands-0.20-boost-1.73.patch
new file mode 100644
index 000000000000..99a8c51190b2
--- /dev/null
+++ b/games-strategy/widelands/files/widelands-0.20-boost-1.73.patch
@@ -0,0 +1,22 @@
+--- a/src/editor/ui_menus/categorized_item_selection_menu.h
++++ b/src/editor/ui_menus/categorized_item_selection_menu.h
+@@ -124,7 +124,7 @@
+
+ UI::Checkbox* cb = create_checkbox(horizontal, descriptions_.get(i));
+ cb->set_state(tool_->is_enabled(i));
+- cb->changedto.connect(boost::bind(&CategorizedItemSelectionMenu::selected, this, i, _1));
++ cb->changedto.connect(boost::bind(&CategorizedItemSelectionMenu::selected, this, i, boost::placeholders::_1));
+ checkboxes_[i] = cb;
+ horizontal->add(cb);
+ horizontal->add_space(kSpacing);
+--- a/src/ui_basic/box.cc
++++ b/src/ui_basic/box.cc
+@@ -104,7 +104,7 @@
+ int maxbreadth = mindesiredbreadth_;
+
+ for (uint32_t idx = 0; idx < items_.size(); ++idx) {
+- int depth, breadth = 0;
++ int depth = 0, breadth = 0;
+ get_item_desired_size(idx, &depth, &breadth);
+
+ totaldepth += depth;