]> git.tdb.fi Git - r2c2.git/blobdiff - source/remote/trainpanel.cpp
Use a typedef for the function map in VehicleType
[r2c2.git] / source / remote / trainpanel.cpp
index e0f2658109b81334092e5567022766312e240d8b..f0d6d14d881debe60061aeb1bc0639f5c8a7374d 100644 (file)
@@ -44,8 +44,8 @@ TrainPanel::TrainPanel(Remote &r, R2C2::Client &c, R2C2::NetTrain &t):
 
        Gtk::HBox *func_box = new Gtk::HBox(false, 5);
        vbox->add(*manage(func_box));
-       const std::map<unsigned, string> &funcs = train.get_loco_type().get_functions();
-       for(std::map<unsigned, string>::const_iterator i=funcs.begin(); i!=funcs.end(); ++i)
+       const R2C2::VehicleType::FunctionMap &funcs = train.get_loco_type().get_functions();
+       for(R2C2::VehicleType::FunctionMap::const_iterator i=funcs.begin(); i!=funcs.end(); ++i)
        {
                Gtk::CheckButton *&chk = chk_funcs[i->first];
                chk = new Gtk::CheckButton(i->second);