no need for ugly cast constructors, just add a second argument

This commit is contained in:
Paul Davis 2015-10-12 13:34:00 -04:00
parent 79113144ef
commit d369894dd5

View file

@ -79,10 +79,7 @@ PluginEqGui::PluginEqGui(boost::shared_ptr<ARDOUR::PluginInsert> pluginInsert)
// dB selection
dBScaleModel = Gtk::ListStore::create(dBColumns);
/* this grotty-looking cast allows compilation against gtkmm 2.24.0, which
added a new ComboBox constructor.
*/
dBScaleCombo = new Gtk::ComboBox ((Glib::RefPtr<Gtk::TreeModel> &) dBScaleModel);
dBScaleCombo = new Gtk::ComboBox (dBScaleModel, false);
dBScaleCombo->set_title (_("dB scale"));
#define ADD_DB_ROW(MIN,MAX,STEP,NAME) \