no need for ugly cast constructors, just add a second argument
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 12 Oct 2015 17:34:00 +0000 (13:34 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 12 Oct 2015 17:34:00 +0000 (13:34 -0400)
gtk2_ardour/plugin_eq_gui.cc

index 3115f54c414e9f336ef6642252f19850008168ff..1fa5d2d598e6250216233baf5b937ebf7833cd52 100644 (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) \