]> git.tdb.fi Git - r2c2.git/blobdiff - source/engineer/trainpanel.cpp
Use a typedef for the function map in VehicleType
[r2c2.git] / source / engineer / trainpanel.cpp
index 51e7a88fe8e820f54b76e03a1a0f94749c170365..10208bfda73aab3fb974facf08d269eef55dd247 100644 (file)
@@ -83,9 +83,9 @@ TrainPanel::TrainPanel(Engineer &e, Train &t):
        lbl_status->set_geometry(GLtk::Geometry(10, 60, geom.w-20, 20));
        status.signal_changed.connect(sigc::mem_fun(this, &TrainPanel::train_status_changed));
 
-       const map<unsigned, string> &funcs = train.get_locomotive_type().get_functions();
+       const VehicleType::FunctionMap &funcs = train.get_locomotive_type().get_functions();
        unsigned x = 10;
-       for(map<unsigned, string>::const_iterator i=funcs.begin(); i!=funcs.end(); ++i, x+=36)
+       for(VehicleType::FunctionMap::const_iterator i=funcs.begin(); i!=funcs.end(); ++i, x+=36)
        {
                string fname = i->second;
                fname[0] = toupper(fname[0]);