From 83968bc1cdc6a9a4704ddad71cfab978ecfbc2b9 Mon Sep 17 00:00:00 2001 From: DennisOSRM Date: Tue, 20 Dec 2011 18:52:53 +0100 Subject: [PATCH] Inline'ing functions that can be inline'd --- DataStructures/SearchEngine.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DataStructures/SearchEngine.h b/DataStructures/SearchEngine.h index a092bf5ed..ceae74d34 100644 --- a/DataStructures/SearchEngine.h +++ b/DataStructures/SearchEngine.h @@ -94,7 +94,7 @@ public: _backwardViaHeap->Clear(); } - int ComputeViaRoute(std::vector & phantomNodesVector, std::vector<_PathData> & unpackedPath) { + inline int ComputeViaRoute(std::vector & phantomNodesVector, std::vector<_PathData> & unpackedPath) { BOOST_FOREACH(PhantomNodes & phantomNodePair, phantomNodesVector) { if(!phantomNodePair.AtLeastOnePhantomNodeIsUINTMAX()) return INT_MAX; @@ -204,7 +204,7 @@ public: return std::min(distance1, distance2); } - int ComputeRoute(PhantomNodes & phantomNodes, std::vector<_PathData> & path) { + inline int ComputeRoute(PhantomNodes & phantomNodes, std::vector<_PathData> & path) { int _upperbound = INT_MAX; if(!phantomNodes.AtLeastOnePhantomNodeIsUINTMAX()) return _upperbound;