diff src/roadveh.h @ 6563:be38c076b3a5 draft

(svn r9765) -Codechange: constify some class functions.
author rubidium <rubidium@openttd.org>
date Wed, 02 May 2007 09:39:11 +0000 (2007-05-02)
parents b9e449cea4d8
children 746c984c2dfe
line wrap: on
line diff
--- a/src/roadveh.h
+++ b/src/roadveh.h
@@ -38,11 +38,11 @@
 	/** 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 */