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>2016-07-27 17:34:22 +0300
committerVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2016-07-27 19:02:21 +0300
commit468f6a563bff0904f96a1399d1ed59a32a14e3e3 (patch)
treeade88237d429d0c1d58cee3cbc949a415c378749 /indexer/feature_altitude.hpp
parent3b8b50a68cead752c2cd858f3840b0d8a17217a9 (diff)
Reveiw fixes.
Diffstat (limited to 'indexer/feature_altitude.hpp')
-rw-r--r--indexer/feature_altitude.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/indexer/feature_altitude.hpp b/indexer/feature_altitude.hpp
index 862b3e3edf..81b0c918ed 100644
--- a/indexer/feature_altitude.hpp
+++ b/indexer/feature_altitude.hpp
@@ -22,6 +22,7 @@ struct AltitudeHeader
using TAltitudeSectionVersion = uint16_t;
AltitudeHeader() { Reset(); }
+
template <class TSink>
void Serialize(TSink & sink) const
{
@@ -91,13 +92,13 @@ public:
}
template <class TSource>
- void Deserialize(TAltitude minAltitude, size_t pointCount, TSource & src)
+ bool Deserialize(TAltitude minAltitude, size_t pointCount, TSource & src)
{
m_altitudes.clear();
if (pointCount == 0)
{
ASSERT(false, ());
- return;
+ return false;
}
m_altitudes.resize(pointCount);
@@ -109,10 +110,11 @@ public:
{
ASSERT(false, ());
m_altitudes.clear();
- return;
+ return false;
}
prevAltitude = m_altitudes[i];
}
+ return true;
}
/// \note |m_altitudes| is a vector of feature point altitudes. There's two possibilities: