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>2019-05-27 15:06:53 +0300
committermpimenov <mpimenov@users.noreply.github.com>2019-05-30 18:53:51 +0300
commitb0868d6d3f371a2aff5db043b219906c95502a42 (patch)
treeaeac2e18d7fdae208b0e2ee919afd19c356b6614 /openlr/decoded_path.cpp
parentc0fb90a4a8b1228144e564a1fd1734136201d549 (diff)
[geometry] LatLon refactoring.
Diffstat (limited to 'openlr/decoded_path.cpp')
-rw-r--r--openlr/decoded_path.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/openlr/decoded_path.cpp b/openlr/decoded_path.cpp
index 6ed600ce1a..29702c41da 100644
--- a/openlr/decoded_path.cpp
+++ b/openlr/decoded_path.cpp
@@ -34,15 +34,15 @@ bool IsForwardFromXML(pugi::xml_node const & node)
void LatLonToXML(ms::LatLon const & latLon, pugi::xml_node & node)
{
auto const kDigitsAfterComma = 5;
- node.append_child("lat").text() = strings::to_string_dac(latLon.lat, kDigitsAfterComma).data();
- node.append_child("lon").text() = strings::to_string_dac(latLon.lon, kDigitsAfterComma).data();
+ node.append_child("lat").text() = strings::to_string_dac(latLon.m_lat, kDigitsAfterComma).data();
+ node.append_child("lon").text() = strings::to_string_dac(latLon.m_lon, kDigitsAfterComma).data();
}
void LatLonFromXML(pugi::xml_node const & node, ms::LatLon & latLon)
{
THROW_IF_NODE_IS_EMPTY(node, openlr::DecodedPathLoadError, ("Can't parse latLon"));
- latLon.lat = node.child("lat").text().as_double();
- latLon.lon = node.child("lon").text().as_double();
+ latLon.m_lat = node.child("lat").text().as_double();
+ latLon.m_lon = node.child("lon").text().as_double();
}
void FeatureIdFromXML(pugi::xml_node const & node, DataSource const & dataSource, FeatureID & fid)