summaryrefslogtreecommitdiff
path: root/src/yapf/yapf_destrail.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/yapf/yapf_destrail.hpp')
-rw-r--r--src/yapf/yapf_destrail.hpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/yapf/yapf_destrail.hpp b/src/yapf/yapf_destrail.hpp
index 25db5ded1..991d23a1d 100644
--- a/src/yapf/yapf_destrail.hpp
+++ b/src/yapf/yapf_destrail.hpp
@@ -38,7 +38,10 @@ public:
typedef typename Node::Key Key; ///< key to hash tables
/// to access inherited path finder
- Tpf& Yapf() {return *static_cast<Tpf*>(this);}
+ Tpf& Yapf()
+ {
+ return *static_cast<Tpf*>(this);
+ }
/// Called by YAPF to detect if node ends in the desired destination
FORCEINLINE bool PfDetectDestination(Node& n)
@@ -73,7 +76,10 @@ public:
typedef typename Types::TrackFollower TrackFollower; ///< TrackFollower. Need to typedef for gcc 2.95
/// to access inherited path finder
- Tpf& Yapf() {return *static_cast<Tpf*>(this);}
+ Tpf& Yapf()
+ {
+ return *static_cast<Tpf*>(this);
+ }
/// Called by YAPF to detect if node ends in the desired destination
FORCEINLINE bool PfDetectDestination(Node& n)
@@ -113,7 +119,10 @@ protected:
StationID m_dest_station_id;
/// to access inherited path finder
- Tpf& Yapf() {return *static_cast<Tpf*>(this);}
+ Tpf& Yapf()
+ {
+ return *static_cast<Tpf*>(this);
+ }
public:
void SetDestination(const Vehicle *v)
@@ -200,5 +209,4 @@ public:
}
};
-
#endif /* YAPF_DESTRAIL_HPP */