]> git.tdb.fi Git - r2c2.git/blobdiff - source/remote/trainpanel.cpp
Silence compiler warnings
[r2c2.git] / source / remote / trainpanel.cpp
index 7675b27f07e086c5ed6a258f2754598b9e4a2283..e0f2658109b81334092e5567022766312e240d8b 100644 (file)
@@ -54,7 +54,7 @@ TrainPanel::TrainPanel(Remote &r, R2C2::Client &c, R2C2::NetTrain &t):
        }
 
        Glib::RefPtr<Gtk::ListStore> route_store = Gtk::ListStore::create(route_columns);
-       vbox->add(*manage(cmb_route = new Gtk::ComboBox(route_store)));
+       vbox->add(*manage(cmb_route = new Gtk::ComboBox(static_cast<const Glib::RefPtr<Gtk::TreeModel> &>(route_store))));
        cmb_route->pack_start(route_columns.name);
        route_store->append();
        const list<string> &routes = client.get_routes();