From f9ff5a5586166ee2f44b43f347726f98c9a966af Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 27 Nov 2020 17:57:42 +0100 Subject: Use enum classes --- src/Patchage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Patchage.cpp') diff --git a/src/Patchage.cpp b/src/Patchage.cpp index 1605325..022eace 100644 --- a/src/Patchage.cpp +++ b/src/Patchage.cpp @@ -955,11 +955,11 @@ update_edge_color(GanvEdge* edge, void* data) } void -Patchage::on_legend_color_change(int id, +Patchage::on_legend_color_change(PortType id, const std::string& label, uint32_t rgba) { - _conf->set_port_color((PortType)id, rgba); + _conf->set_port_color(id, rgba); _canvas->for_each_node(update_port_colors, this); _canvas->for_each_edge(update_edge_color, this); } -- cgit v1.2.1