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:
authorMaxim Pimenov <m@maps.me>2018-11-22 13:25:31 +0300
committerTatiana Yan <tatiana.kondakova@gmail.com>2018-11-23 16:59:58 +0300
commit5ecc13b454157050c9c0bb119beac2fdaf307deb (patch)
tree4a06fba3a1a48520ff0fd46009de86925fa01300 /local_ads
parentd75839e65c4a63ed0e4a7b192d584e8b83efb435 (diff)
Review fixes.
Diffstat (limited to 'local_ads')
-rw-r--r--local_ads/statistics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/local_ads/statistics.cpp b/local_ads/statistics.cpp
index 0c7bc82e0c..5b19de28ac 100644
--- a/local_ads/statistics.cpp
+++ b/local_ads/statistics.cpp
@@ -168,7 +168,7 @@ std::list<local_ads::Event> ReadEvents(std::string const & fileName)
ReadPackedData(src, [&result](local_ads::Statistics::PackedData && data,
std::string const & countryId, int64_t mwmVersion,
local_ads::Timestamp const & baseTimestamp) {
- auto const mercatorPt = Int64ToPointObsolete(data.m_mercator, POINT_COORD_BITS);
+ auto const mercatorPt = Int64ToPointObsolete(data.m_mercator, kPointCoordBits);
result.emplace_back(static_cast<local_ads::EventType>(data.m_eventType), mwmVersion, countryId,
data.m_featureIndex, data.m_zoomLevel,
baseTimestamp + std::chrono::seconds(data.m_seconds),
@@ -343,7 +343,7 @@ std::list<Event> Statistics::WriteEvents(std::list<Event> & events, std::string
data.m_zoomLevel = event.m_zoomLevel;
data.m_eventType = static_cast<uint8_t>(event.m_type);
auto const mercatorPt = MercatorBounds::FromLatLon(event.m_latitude, event.m_longitude);
- data.m_mercator = PointToInt64Obsolete(mercatorPt, POINT_COORD_BITS);
+ data.m_mercator = PointToInt64Obsolete(mercatorPt, kPointCoordBits);
data.m_accuracy = event.m_accuracyInMeters;
WritePackedData(*writer, std::move(data));
}