Remove two uses of boost::bind()
This commit is contained in:
parent
083ce3a52a
commit
3d140f988a
2 changed files with 7 additions and 3 deletions
|
@ -83,9 +83,9 @@ void tmp_create_game::pre_show(twindow& window)
|
|||
tlistbox& list = find_widget<tlistbox>(&window, "map_list", false);
|
||||
#ifdef GUI2_EXPERIMENTAL_LISTBOX
|
||||
connect_signal_notify_modified(list,
|
||||
boost::bind(&tmp_create_game::update_map,
|
||||
std::bind(&tmp_create_game::update_map,
|
||||
*this,
|
||||
boost::ref(window)));
|
||||
std::ref(window)));
|
||||
#else
|
||||
list.set_callback_value_change(
|
||||
dialog_callback<tmp_create_game, &tmp_create_game::update_map>);
|
||||
|
|
|
@ -735,6 +735,10 @@ void command_executor_default::zoom_default()
|
|||
}
|
||||
void command_executor_default::map_screenshot()
|
||||
{
|
||||
make_screenshot(_("Map-Screenshot"), get_video(), boost::bind(&display::screenshot, &get_display(), _1, true));
|
||||
make_screenshot(_("Map-Screenshot"), get_video(),
|
||||
[this](const std::string& filename, const CVideo&)
|
||||
{
|
||||
return get_display().screenshot(filename, true);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue