From a3ac99de49a18cc7c783b13d9d864594fe01579a Mon Sep 17 00:00:00 2001 From: Viktor Govako Date: Tue, 7 Mar 2023 12:52:38 -0300 Subject: [PATCH] [feature] Updated ASSERTs. Signed-off-by: Viktor Govako --- indexer/feature.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/indexer/feature.cpp b/indexer/feature.cpp index ac2230da66..34d697dbfa 100644 --- a/indexer/feature.cpp +++ b/indexer/feature.cpp @@ -691,7 +691,7 @@ m2::RectD FeatureType::GetLimitRect(int scale) if (m_triangles.empty() && m_points.empty() && (GetGeomType() != GeomType::Point)) { - ASSERT(false, ()); + ASSERT(false, (m_id)); // This function is called during indexing, when we need // to check visibility according to feature sizes. @@ -704,9 +704,8 @@ m2::RectD FeatureType::GetLimitRect(int scale) m2::RectD const & FeatureType::GetLimitRectChecked() const { - /// @todo Replace with ASSERTs later. - CHECK(m_parsed.m_points && m_parsed.m_triangles, (m_id)); - CHECK(m_limitRect.IsValid(), (m_id)); + ASSERT(m_parsed.m_points && m_parsed.m_triangles, (m_id)); + ASSERT(m_limitRect.IsValid(), (m_id)); return m_limitRect; }