From f0de54bc10d158bbb1ae58b628c0896a56880540 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Wed, 4 Mar 2009 08:02:16 +0000 Subject: (svn r15609) -Fix: Code style... --- src/yapf/yapf_base.hpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'src/yapf/yapf_base.hpp') diff --git a/src/yapf/yapf_base.hpp b/src/yapf/yapf_base.hpp index eb134b4a1..4975c95de 100644 --- a/src/yapf/yapf_base.hpp +++ b/src/yapf/yapf_base.hpp @@ -88,7 +88,10 @@ public: protected: /// to access inherited path finder - FORCEINLINE Tpf& Yapf() {return *static_cast(this);} + FORCEINLINE Tpf& Yapf() + { + return *static_cast(this); + } public: /// return current settings (can be custom - company based - but later) @@ -118,12 +121,14 @@ public: while (true) { m_num_steps++; Node *n = m_nodes.GetBestOpenNode(); - if (n == NULL) + if (n == NULL) { break; + } // if the best open node was worse than the best path found, we can finish - if (m_pBestDestNode != NULL && m_pBestDestNode->GetCost() < n->GetCostEstimate()) + if (m_pBestDestNode != NULL && m_pBestDestNode->GetCost() < n->GetCostEstimate()) { break; + } Yapf().PfFollowNode(*n); if (m_max_search_nodes == 0 || m_nodes.ClosedCount() < m_max_search_nodes) { @@ -281,7 +286,10 @@ public: m_nodes.InsertOpenNode(n); } - const Vehicle * GetVehicle() const {return m_veh;} + const Vehicle * GetVehicle() const + { + return m_veh; + } void DumpBase(DumpTarget &dmp) const { -- cgit v1.2.3-54-g00ecf