diff options
Diffstat (limited to 'src/yapf/yapf_common.hpp')
-rw-r--r-- | src/yapf/yapf_common.hpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/yapf/yapf_common.hpp b/src/yapf/yapf_common.hpp index b13d76fe5..b52690f2a 100644 --- a/src/yapf/yapf_common.hpp +++ b/src/yapf/yapf_common.hpp @@ -19,7 +19,10 @@ protected: TrackdirBits m_orgTrackdirs; ///< origin trackdir mask /// to access inherited path finder - FORCEINLINE Tpf& Yapf() {return *static_cast<Tpf*>(this);} + FORCEINLINE Tpf& Yapf() + { + return *static_cast<Tpf*>(this); + } public: /// Set origin tile / trackdir mask @@ -60,7 +63,10 @@ protected: bool m_treat_first_red_two_way_signal_as_eol; ///< in some cases (leaving station) we need to handle first two-way signal differently /// to access inherited path finder - FORCEINLINE Tpf& Yapf() {return *static_cast<Tpf*>(this);} + FORCEINLINE Tpf& Yapf() + { + return *static_cast<Tpf*>(this); + } public: /// set origin (tiles, trackdirs, etc.) @@ -120,7 +126,10 @@ public: protected: /// to access inherited path finder - Tpf& Yapf() {return *static_cast<Tpf*>(this);} + Tpf& Yapf() + { + return *static_cast<Tpf*>(this); + } public: /// Called by YAPF to detect if node ends in the desired destination |