From fc86629daf07a51519c39ad4e12525cadcaf4758 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 18 Apr 2024 10:47:08 -0600 Subject: [PATCH] sometimes concision with variable naming is of no help --- gtk2_ardour/option_editor.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gtk2_ardour/option_editor.cc b/gtk2_ardour/option_editor.cc index 49a42b7b85..f5f2164c00 100644 --- a/gtk2_ardour/option_editor.cc +++ b/gtk2_ardour/option_editor.cc @@ -1107,20 +1107,20 @@ OptionEditor::add_path_to_treeview (std::string const & pn, Gtk::Widget& widget) } /** Add a component to a given page. - * @param pn Page name (will be created if it doesn't already exist) + * @param page_name Page name (will be created if it doesn't already exist) * @param o Component. */ void -OptionEditor::add_option (std::string const & pn, OptionEditorComponent* o) +OptionEditor::add_option (std::string const & page_name, OptionEditorComponent* o) { - if (_pages.find (pn) == _pages.end()) { - OptionEditorPage* oep = new OptionEditorPage (_notebook, pn); - _pages[pn] = oep; + if (_pages.find (page_name) == _pages.end()) { + OptionEditorPage* oep = new OptionEditorPage (_notebook, page_name); + _pages[page_name] = oep; - add_path_to_treeview (pn, oep->box); + add_path_to_treeview (page_name, oep->box); } - OptionEditorPage* p = _pages[pn]; + OptionEditorPage* p = _pages[page_name]; p->components.push_back (o); o->add_to_page (p);