diff --git a/routing_common/transit_types.cpp b/routing_common/transit_types.cpp index fe03fc6fe8..e949846034 100644 --- a/routing_common/transit_types.cpp +++ b/routing_common/transit_types.cpp @@ -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) { } diff --git a/routing_common/transit_types.hpp b/routing_common/transit_types.hpp index 45e32c13ed..6c77b1ab23 100644 --- a/routing_common/transit_types.hpp +++ b/routing_common/transit_types.hpp @@ -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; }