diff options
author | rubidium <rubidium@openttd.org> | 2007-05-02 09:39:11 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-02 09:39:11 +0000 |
commit | 0297ce53a8b92a6edf6931715f5d90092161d047 (patch) | |
tree | 9b8a7fbf387498c62c9649ba43171bc6f882dc3d /src/train.h | |
parent | 5e4c9ad875bd3181139b214ddc214a0578998da6 (diff) | |
download | openttd-0297ce53a8b92a6edf6931715f5d90092161d047.tar.xz |
(svn r9765) -Codechange: constify some class functions.
Diffstat (limited to 'src/train.h')
-rw-r--r-- | src/train.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/train.h b/src/train.h index eaebf04bc..74f4341ba 100644 --- a/src/train.h +++ b/src/train.h @@ -243,11 +243,11 @@ struct Train : public Vehicle { /** We want to 'destruct' the right class. */ virtual ~Train() {} - const char *GetTypeString() { return "train"; } + const char *GetTypeString() const { return "train"; } void MarkDirty(); void UpdateDeltaXY(Direction direction); - ExpensesType GetExpenseType(bool income) { return income ? EXPENSES_TRAIN_INC : EXPENSES_TRAIN_RUN; } - WindowClass GetVehicleListWindowClass() { return WC_TRAINS_LIST; } + ExpensesType GetExpenseType(bool income) const { return income ? EXPENSES_TRAIN_INC : EXPENSES_TRAIN_RUN; } + WindowClass GetVehicleListWindowClass() const { return WC_TRAINS_LIST; } }; #endif /* TRAIN_H */ |