mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
Reduce reliance on boost - the hard part
the rest from `tools/convert_boost.sh`.
* replace boost::function, boost::bind with std::function and std::bind.
This required some manual fixes, notably std::placeholders,
some static_casts<>, and boost::function::clear -> = {}.
This commit is contained in:
parent
ff95d81612
commit
74c4ca3e52
392 changed files with 2264 additions and 2282 deletions
|
|
@ -1380,13 +1380,13 @@ protected:
|
|||
AudioEngine::instance()->PortRegisteredOrUnregistered.connect (
|
||||
_engine_connection,
|
||||
invalidator (*this),
|
||||
boost::bind (&PortSelectOption::update_port_combo, this),
|
||||
std::bind (&PortSelectOption::update_port_combo, this),
|
||||
gui_context());
|
||||
|
||||
AudioEngine::instance()->PortPrettyNameChanged.connect (
|
||||
_engine_connection,
|
||||
invalidator (*this),
|
||||
boost::bind (&PortSelectOption::update_port_combo, this),
|
||||
std::bind (&PortSelectOption::update_port_combo, this),
|
||||
gui_context());
|
||||
}
|
||||
|
||||
|
|
@ -1612,7 +1612,7 @@ class ControlSurfacesOptions : public OptionEditorMiniPage
|
|||
|
||||
ControlProtocolManager& m = ControlProtocolManager::instance ();
|
||||
m.ProtocolStatusChange.connect (protocol_status_connection, MISSING_INVALIDATOR,
|
||||
boost::bind (&ControlSurfacesOptions::protocol_status_changed, this, _1), gui_context());
|
||||
std::bind (&ControlSurfacesOptions::protocol_status_changed, this, _1), gui_context());
|
||||
|
||||
_store->signal_row_changed().connect (sigc::mem_fun (*this, &ControlSurfacesOptions::view_changed));
|
||||
_view.signal_button_press_event().connect_notify (sigc::mem_fun(*this, &ControlSurfacesOptions::edit_clicked));
|
||||
|
|
@ -2104,15 +2104,15 @@ class MidiPortOptions : public OptionEditorMiniPage, public sigc::trackable
|
|||
|
||||
AudioEngine::instance()->PortRegisteredOrUnregistered.connect (connections,
|
||||
invalidator (*this),
|
||||
boost::bind (&MidiPortOptions::refill, this),
|
||||
std::bind (&MidiPortOptions::refill, this),
|
||||
gui_context());
|
||||
AudioEngine::instance()->MidiPortInfoChanged.connect (connections,
|
||||
invalidator (*this),
|
||||
boost::bind (&MidiPortOptions::refill, this),
|
||||
std::bind (&MidiPortOptions::refill, this),
|
||||
gui_context());
|
||||
AudioEngine::instance()->MidiSelectionPortsChanged.connect (connections,
|
||||
invalidator (*this),
|
||||
boost::bind (&MidiPortOptions::refill, this),
|
||||
std::bind (&MidiPortOptions::refill, this),
|
||||
gui_context());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue