Replace boost::assign::map_list_of with initializer_list constructor

This commit is contained in:
Alejandro Domínguez 2024-08-28 20:10:00 +02:00 committed by Robin Gareus
parent abf7a78984
commit 7a0428644f
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -16,8 +16,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#include <boost/assign.hpp>
#include "ardour/plugin_insert.h" #include "ardour/plugin_insert.h"
#include "ardour_websockets.h" #include "ardour_websockets.h"
@ -27,18 +25,19 @@
using namespace ARDOUR; using namespace ARDOUR;
using namespace ArdourSurface; using namespace ArdourSurface;
#define NODE_METHOD_PAIR(x) (Node::x, &WebsocketsDispatcher::x##_handler) #define NODE_METHOD_PAIR(x) {Node::x, &WebsocketsDispatcher::x##_handler}
WebsocketsDispatcher::NodeMethodMap WebsocketsDispatcher::NodeMethodMap
WebsocketsDispatcher::_node_to_method = boost::assign::map_list_of WebsocketsDispatcher::_node_to_method {
NODE_METHOD_PAIR (transport_tempo) NODE_METHOD_PAIR (transport_tempo),
NODE_METHOD_PAIR (transport_roll) NODE_METHOD_PAIR (transport_roll),
NODE_METHOD_PAIR (transport_record) NODE_METHOD_PAIR (transport_record),
NODE_METHOD_PAIR (strip_gain) NODE_METHOD_PAIR (strip_gain),
NODE_METHOD_PAIR (strip_pan) NODE_METHOD_PAIR (strip_pan),
NODE_METHOD_PAIR (strip_mute) NODE_METHOD_PAIR (strip_mute),
NODE_METHOD_PAIR (strip_plugin_enable) NODE_METHOD_PAIR (strip_plugin_enable),
NODE_METHOD_PAIR (strip_plugin_param_value); NODE_METHOD_PAIR (strip_plugin_param_value)
};
void void
WebsocketsDispatcher::dispatch (Client client, const NodeStateMessage& msg) WebsocketsDispatcher::dispatch (Client client, const NodeStateMessage& msg)