From 5f5e293345a063ab7b274edcc76d329891503379 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 27 Nov 2020 17:57:43 +0100 Subject: Use consistent naming convention for enum classes --- src/PatchageModule.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/PatchageModule.cpp') diff --git a/src/PatchageModule.cpp b/src/PatchageModule.cpp index 61728ec..c871036 100644 --- a/src/PatchageModule.cpp +++ b/src/PatchageModule.cpp @@ -54,7 +54,7 @@ PatchageModule::update_menu() return; } - if (_type == ModuleType::InputOutput) { + if (_type == ModuleType::input_output) { bool has_in = false; bool has_out = false; for (const_iterator p = begin(); p != end(); ++p) { @@ -77,7 +77,7 @@ PatchageModule::show_menu(GdkEventButton* ev) { _menu = new Gtk::Menu(); Gtk::Menu::MenuList& items = _menu->items(); - if (_type == ModuleType::InputOutput) { + if (_type == ModuleType::input_output) { items.push_back(Gtk::Menu_Helpers::MenuElem( "_Split", sigc::mem_fun(this, &PatchageModule::split))); update_menu(); @@ -124,7 +124,7 @@ PatchageModule::store_location(double x, double y) void PatchageModule::split() { - assert(_type == ModuleType::InputOutput); + assert(_type == ModuleType::input_output); _app->conf()->set_module_split(_name, true); _app->refresh(); } @@ -132,7 +132,7 @@ PatchageModule::split() void PatchageModule::join() { - assert(_type != ModuleType::InputOutput); + assert(_type != ModuleType::input_output); _app->conf()->set_module_split(_name, false); _app->refresh(); } -- cgit v1.2.1