X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fengineer%2Ftrainproperties.cpp;h=360923514b40297dd46440d1ea0864cccd064bf1;hb=850c1d571f2d2d157a873b678d86e4a5c771ba26;hp=f36035f52c31f1e2250f779f560ea0e578336e38;hpb=d15ac13f2e170f155b4bbd124df48400c339b644;p=r2c2.git diff --git a/source/engineer/trainproperties.cpp b/source/engineer/trainproperties.cpp index f36035f..3609235 100644 --- a/source/engineer/trainproperties.cpp +++ b/source/engineer/trainproperties.cpp @@ -1,5 +1,5 @@ #include -#include +#include #include #include "libr2c2/driver.h" #include "libr2c2/vehicle.h" @@ -87,7 +87,7 @@ TrainProperties::TrainProperties(Engineer &e, Train *t): if(train) { - ent_addr->set_text(lexical_cast(train->get_address())); + ent_addr->set_text(lexical_cast(train->get_address())); ent_name->set_text(train->get_name()); drp_priority->set_selected_index(train->get_priority()+2); @@ -171,5 +171,5 @@ const VehicleType &TrainProperties::get_vehicle_type(unsigned n, bool loco) ++i; } - throw InvalidParameterValue("Vehicle type index out of range"); + throw out_of_range("TrainProperties::get_vehicle_type"); }