changeset 11064:388ca17e8ab1 draft

(svn r15404) -Cleanup [YAPF]: A tiny bit of const correctness.
author michi_cc <michi_cc@openttd.org>
date Sun, 08 Feb 2009 01:10:48 +0000
parents a0739544581b
children 9b1699d5a2bc
files src/yapf/yapf_node.hpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/yapf/yapf_node.hpp
+++ b/src/yapf/yapf_node.hpp
@@ -61,8 +61,8 @@
 	FORCEINLINE TileIndex GetTile() const {return m_key.m_tile;}
 	FORCEINLINE Trackdir GetTrackdir() const {return m_key.m_td;}
 	FORCEINLINE const Tkey_& GetKey() const {return m_key;}
-	FORCEINLINE int GetCost() {return m_cost;}
-	FORCEINLINE int GetCostEstimate() {return m_estimate;}
+	FORCEINLINE int GetCost() const {return m_cost;}
+	FORCEINLINE int GetCostEstimate() const {return m_estimate;}
 	FORCEINLINE bool operator < (const Node& other) const {return m_estimate < other.m_estimate;}
 
 	void Dump(DumpTarget &dmp) const