diff options
author | rubidium <rubidium@openttd.org> | 2008-06-02 06:44:06 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-06-02 06:44:06 +0000 |
commit | 5189877e3d0ec978e1e6c2bbb3aa06c5963b9c67 (patch) | |
tree | f0769372f37b0f18b63ea52080267ad955972437 /src/yapf/follow_track.hpp | |
parent | 24562da11be4f8f7db755c081f272673acd6c9fa (diff) | |
download | openttd-5189877e3d0ec978e1e6c2bbb3aa06c5963b9c67.tar.xz |
(svn r13357) -Codechange: add constness to YAPF.
Diffstat (limited to 'src/yapf/follow_track.hpp')
-rw-r--r-- | src/yapf/follow_track.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/yapf/follow_track.hpp b/src/yapf/follow_track.hpp index e72d9deda..362a3d355 100644 --- a/src/yapf/follow_track.hpp +++ b/src/yapf/follow_track.hpp @@ -22,7 +22,7 @@ struct CFollowTrackT EC_NO_WAY, }; - const Vehicle* m_veh; ///< moving vehicle + const Vehicle *m_veh; ///< moving vehicle TileIndex m_old_tile; ///< the origin (vehicle moved from) before move Trackdir m_old_td; ///< the trackdir (the vehicle was on) before move TileIndex m_new_tile; ///< the new tile (the vehicle has entered) @@ -33,14 +33,14 @@ struct CFollowTrackT bool m_is_station; ///< last turn passed station int m_tiles_skipped; ///< number of skipped tunnel or station tiles ErrorCode m_err; - CPerformanceTimer* m_pPerf; + CPerformanceTimer *m_pPerf; - FORCEINLINE CFollowTrackT(const Vehicle* v = NULL, CPerformanceTimer* pPerf = NULL) + FORCEINLINE CFollowTrackT(const Vehicle *v = NULL, CPerformanceTimer* pPerf = NULL) { Init(v, pPerf); } - FORCEINLINE void Init(const Vehicle* v, CPerformanceTimer* pPerf) + FORCEINLINE void Init(const Vehicle *v, CPerformanceTimer* pPerf) { assert(!IsRailTT() || (v != NULL && v->type == VEH_TRAIN)); m_veh = v; |