mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-29 09:13:46 +00:00
[core] Use constexpr when possible
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -235,7 +235,7 @@ void ClipPathByRectBeforeSmooth(m2::RectD const & rect, std::vector<m2::PointD>
|
||||
|
||||
m2::PointD guideFront;
|
||||
m2::PointD guideBack;
|
||||
double const kEps = 1e-5;
|
||||
double constexpr kEps = 1e-5;
|
||||
if (path.front().EqualDxDy(path.back(), kEps))
|
||||
{
|
||||
guideFront = path[path.size() - 2];
|
||||
|
||||
Reference in New Issue
Block a user