mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-24 06:53:46 +00:00
[core] Use constexpr when possible
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -49,7 +49,7 @@ PostcodePoints::PostcodePoints(MwmValue const & value)
|
||||
m_points = CentersTable::LoadV1(*m_pointsSubReader);
|
||||
CHECK(m_points, ());
|
||||
|
||||
auto const kPostcodeRadiusMultiplier = 5.0;
|
||||
auto constexpr kPostcodeRadiusMultiplier = 5.0;
|
||||
auto const area = value.GetHeader().GetBounds().Area();
|
||||
auto const count = static_cast<double>(m_points->Count());
|
||||
CHECK_NOT_EQUAL(count, 0.0, ("Zero postcodes should not be serialized to", POSTCODE_POINTS_FILE_TAG, "section"));
|
||||
|
||||
Reference in New Issue
Block a user