src/roadveh.h
changeset 6563 fed2a162046b
parent 6562 077afce9a4ee
child 6773 bc98b0b16ec4
--- a/src/roadveh.h	Wed May 02 09:29:41 2007 +0000
+++ b/src/roadveh.h	Wed May 02 09:39:11 2007 +0000
@@ -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 */