forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
games-strategy/widelands: Fix for boost 1.73
Closes: https://bugs.gentoo.org/724316 Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: David Seifert <[email protected]>
- Loading branch information
1 parent
f268b99
commit 030ea7d
Showing
2 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
games-strategy/widelands/files/widelands-0.20-boost-1.73.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters