(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

@@ -197,7 +197,7 @@ private:
typedef SmallVector<Industry *, 2> IndustryVector;
/** Station data structure */
struct Station : SpecializedStation<Station, false> {
struct Station FINAL : SpecializedStation<Station, false> {
public:
RoadStop *GetPrimaryRoadStop(RoadStopType type) const
{