changeset 12000:432a32fa1746 draft

(svn r16406) -Codechange: constify parameters of CheckSubsidised()
author smatz <smatz@openttd.org>
date Sat, 23 May 2009 19:26:00 +0000
parents b8e87660b9fc
children 2dd20683fcbb
files src/subsidy.cpp src/subsidy_func.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/subsidy.cpp
+++ b/src/subsidy.cpp
@@ -286,7 +286,7 @@
 		InvalidateWindow(WC_SUBSIDIES_LIST, 0);
 }
 
-bool CheckSubsidised(Station *from, Station *to, CargoID cargo_type)
+bool CheckSubsidised(const Station *from, const Station *to, CargoID cargo_type)
 {
 	Subsidy *s;
 	TileIndex xy;
--- a/src/subsidy_func.h
+++ b/src/subsidy_func.h
@@ -16,7 +16,7 @@
 void DeleteSubsidyWithTown(TownID index);
 void DeleteSubsidyWithIndustry(IndustryID index);
 void DeleteSubsidyWithStation(StationID index);
-bool CheckSubsidised(Station *from, Station *to, CargoID cargo_type);
+bool CheckSubsidised(const Station *from, const Station *to, CargoID cargo_type);
 void SubsidyMonthlyHandler();
 
 #endif /* SUBSIDY_FUNC_H */