Review fixes.

This commit is contained in:
Vladimir Byko-Ianko 2017-10-25 18:55:02 +03:00 committed by Yuri Gorshenin
parent fd85eb9159
commit 1ad24377ed
2 changed files with 9 additions and 3 deletions

View file

@ -62,8 +62,14 @@ bool TransitHeader::IsValid() const
}
// FeatureIdentifiers -----------------------------------------------------------------------------
FeatureIdentifiers::FeatureIdentifiers(OsmId osmId, FeatureId const & featureId, bool serializeFeatureIdOnly)
: m_osmId(osmId), m_featureId(featureId), m_serializeFeatureIdOnly(serializeFeatureIdOnly)
FeatureIdentifiers::FeatureIdentifiers(bool serializeFeatureIdOnly)
: m_serializeFeatureIdOnly(serializeFeatureIdOnly)
{
}
FeatureIdentifiers::FeatureIdentifiers(OsmId osmId, FeatureId const & featureId,
bool serializeFeatureIdOnly)
: m_osmId(osmId), m_featureId(featureId), m_serializeFeatureIdOnly(serializeFeatureIdOnly)
{
}

View file

@ -85,7 +85,7 @@ static_assert(sizeof(TransitHeader) == 32, "Wrong header size of transit section
class FeatureIdentifiers
{
public:
explicit FeatureIdentifiers(bool serializeFeatureIdOnly) : m_serializeFeatureIdOnly(serializeFeatureIdOnly) {}
explicit FeatureIdentifiers(bool serializeFeatureIdOnly);
FeatureIdentifiers(OsmId osmId, FeatureId const & featureId, bool serializeFeatureIdOnly);
bool IsEqualForTesting(FeatureIdentifiers const & rhs) const { return m_featureId == rhs.m_featureId; }