diff --git a/coding/map_uint32_to_val.hpp b/coding/map_uint32_to_val.hpp index a2c4b23f80..1b8acc5137 100644 --- a/coding/map_uint32_to_val.hpp +++ b/coding/map_uint32_to_val.hpp @@ -12,7 +12,6 @@ #include "base/assert.hpp" #include "base/checked_cast.hpp" #include "base/logging.hpp" -#include "base/macros.hpp" #if defined(__clang__) #pragma clang diagnostic push @@ -212,8 +211,7 @@ public: auto const j = static_cast(m_ids.select(i)); Value value; bool const ok = Get(j, value); - UNUSED_VALUE(ok); - ASSERT(ok, ()); + CHECK(ok, ()); fn(j, value); } } diff --git a/indexer/feature_to_osm.hpp b/indexer/feature_to_osm.hpp index 67cacdabbd..b71a6c5392 100644 --- a/indexer/feature_to_osm.hpp +++ b/indexer/feature_to_osm.hpp @@ -110,7 +110,6 @@ public: static Version const kLatestVersion; static size_t const kMagicAndVersionSize; static size_t const kHeaderOffset; - static std::array kTypes; struct HeaderV0 { @@ -219,9 +218,9 @@ public: { using Type = base::GeoObjectId::Type; auto const startPos = base::checked_cast(sink.Pos()); - SerializeV0(sink, Type::OsmNode, header.m_nodesOffset, map); - SerializeV0(sink, Type::OsmWay, header.m_waysOffset, map); - SerializeV0(sink, Type::OsmRelation, header.m_relationsOffset, map); + SerializeV0(sink, Type::OsmNode, map, header.m_nodesOffset); + SerializeV0(sink, Type::OsmWay, map, header.m_waysOffset); + SerializeV0(sink, Type::OsmRelation, map, header.m_relationsOffset); header.m_numEntries = static_cast(map.Size()); @@ -232,8 +231,8 @@ public: } template - static void SerializeV0(Sink & sink, base::GeoObjectId::Type type, uint32_t & offset, - FeatureIdToGeoObjectIdBimapMem const & map) + static void SerializeV0(Sink & sink, base::GeoObjectId::Type type, + FeatureIdToGeoObjectIdBimapMem const & map, uint32_t & offset) { offset = base::checked_cast(sink.Pos()); std::vector> entries;