summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2009-02-08 01:10:48 +0000
committermichi_cc <michi_cc@openttd.org>2009-02-08 01:10:48 +0000
commit26c4a02c8b9e01974d8c211d6126b0a2f0ee9731 (patch)
tree1a991c1aa7b848e108629dfe153961b128d708f4
parent982f310e5a715f96f6d91c591817ba539ff89a72 (diff)
downloadopenttd-26c4a02c8b9e01974d8c211d6126b0a2f0ee9731.tar.xz
(svn r15404) -Cleanup [YAPF]: A tiny bit of const correctness.
-rw-r--r--src/yapf/yapf_node.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yapf/yapf_node.hpp b/src/yapf/yapf_node.hpp
index 16146a488..7c466851f 100644
--- a/src/yapf/yapf_node.hpp
+++ b/src/yapf/yapf_node.hpp
@@ -61,8 +61,8 @@ struct CYapfNodeT {
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