summaryrefslogtreecommitdiff
path: root/src/roadveh.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-05-02 09:39:11 +0000
committerrubidium <rubidium@openttd.org>2007-05-02 09:39:11 +0000
commit951c74806f9e261e90cbd0eff2dd11172ad94b35 (patch)
tree9b8a7fbf387498c62c9649ba43171bc6f882dc3d /src/roadveh.h
parentdce7dcb6649dca7a05f5abc5b006822a05e06056 (diff)
downloadopenttd-951c74806f9e261e90cbd0eff2dd11172ad94b35.tar.xz
(svn r9765) -Codechange: constify some class functions.
Diffstat (limited to 'src/roadveh.h')
-rw-r--r--src/roadveh.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/roadveh.h b/src/roadveh.h
index c3d8cbf94..3db44ff45 100644
--- a/src/roadveh.h
+++ b/src/roadveh.h
@@ -38,11 +38,11 @@ struct RoadVehicle : public Vehicle {
/** We want to 'destruct' the right class. */
virtual ~RoadVehicle() {}
- const char *GetTypeString() { return "road vehicle"; }
+ const char *GetTypeString() const { return "road vehicle"; }
void MarkDirty();
void UpdateDeltaXY(Direction direction);
- ExpensesType GetExpenseType(bool income) { return income ? EXPENSES_ROADVEH_INC : EXPENSES_ROADVEH_RUN; }
- WindowClass GetVehicleListWindowClass() { return WC_ROADVEH_LIST; }
+ ExpensesType GetExpenseType(bool income) const { return income ? EXPENSES_ROADVEH_INC : EXPENSES_ROADVEH_RUN; }
+ WindowClass GetVehicleListWindowClass() const { return WC_ROADVEH_LIST; }
};
#endif /* ROADVEH_H */