Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2018-03-27 12:00:42 +0300
committerTatiana Yan <tatiana.kondakova@gmail.com>2018-03-27 12:53:15 +0300
commit40b43aa600e502032c9d218c8b9838d23a2db679 (patch)
treeda437cfa1fb09f8185c24a0d23b984d44461ffe8 /routing
parent0df50f44ec86c420ef8b2d0ce0b4725818a95b92 (diff)
Changing ctor RouteWeight params to int8_t.
Diffstat (limited to 'routing')
-rw-r--r--routing/route_weight.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/routing/route_weight.hpp b/routing/route_weight.hpp
index aedb731dba..66c1587b29 100644
--- a/routing/route_weight.hpp
+++ b/routing/route_weight.hpp
@@ -17,11 +17,11 @@ public:
explicit constexpr RouteWeight(double weight) : m_weight(weight) {}
- constexpr RouteWeight(double weight, int32_t numPassThroughChanges, int32_t numAccessChanges,
+ constexpr RouteWeight(double weight, int8_t numPassThroughChanges, int8_t numAccessChanges,
double transitTime)
: m_weight(weight)
- , m_numPassThroughChanges(static_cast<int8_t>(numPassThroughChanges))
- , m_numAccessChanges(static_cast<int8_t>(numAccessChanges))
+ , m_numPassThroughChanges(numPassThroughChanges)
+ , m_numAccessChanges(numAccessChanges)
, m_transitTime(transitTime)
{
}
@@ -91,7 +91,7 @@ private:
// Number of access=yes/access={private,destination} zone changes.
int8_t m_numAccessChanges = 0;
// Transit time. It's already included in |m_weight| (m_transitTime <= m_weight).
- double m_transitTime = 0.0F;
+ double m_transitTime = 0.0;
};
std::ostream & operator<<(std::ostream & os, RouteWeight const & routeWeight);