(svn r9765) -Codechange: constify some class functions.

This commit is contained in:
rubidium
2007-05-02 09:39:11 +00:00
parent dce7dcb664
commit 951c74806f
5 changed files with 18 additions and 18 deletions

View File

@@ -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 */