mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
[core] Use constexpr when possible
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -177,7 +177,7 @@ editor::XMLFeature ChangesetWrapper::GetMatchingNodeFeatureFromOSM(m2::PointD co
|
||||
|
||||
editor::XMLFeature ChangesetWrapper::GetMatchingAreaFeatureFromOSM(std::vector<m2::PointD> const & geometry)
|
||||
{
|
||||
auto const kSamplePointsCount = 3;
|
||||
auto constexpr kSamplePointsCount = 3;
|
||||
bool hasRelation = false;
|
||||
// Try several points in case of poor osm response.
|
||||
for (auto const & pt : NaiveSample(geometry, kSamplePointsCount))
|
||||
|
||||
Reference in New Issue
Block a user