(svn r23588) -Codechange: use the 'final' keyword so compiler can optimise out some indirect calls

This commit is contained in:
smatz
2011-12-18 17:17:18 +00:00
parent 88f1acd26b
commit 33d283fdb1
12 changed files with 19 additions and 12 deletions

View File

@@ -67,7 +67,7 @@ struct TrainCache {
/**
* 'Train' is either a loco or a wagon.
*/
struct Train : public GroundVehicle<Train, VEH_TRAIN> {
struct Train FINAL : public GroundVehicle<Train, VEH_TRAIN> {
TrainCache tcache;
/* Link between the two ends of a multiheaded engine */