From 0297ce53a8b92a6edf6931715f5d90092161d047 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 2 May 2007 09:39:11 +0000 Subject: (svn r9765) -Codechange: constify some class functions. --- src/roadveh.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/roadveh.h') 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 */ -- cgit v1.2.3-70-g09d2