summaryrefslogtreecommitdiffstats
path: root/src/Patchage.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-27 17:57:42 +0100
committerDavid Robillard <d@drobilla.net>2020-11-27 21:42:51 +0100
commitf9ff5a5586166ee2f44b43f347726f98c9a966af (patch)
treea6f13e24579d2f56e41744d15a27fe1250d532f4 /src/Patchage.cpp
parent47e93d947c4b5a468802c168be087b8145a67c62 (diff)
downloadpatchage-f9ff5a5586166ee2f44b43f347726f98c9a966af.tar.gz
patchage-f9ff5a5586166ee2f44b43f347726f98c9a966af.tar.bz2
patchage-f9ff5a5586166ee2f44b43f347726f98c9a966af.zip
Use enum classes
Diffstat (limited to 'src/Patchage.cpp')
-rw-r--r--src/Patchage.cpp4
1 files changed, 2 insertions, 2 deletions
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);
}