From 68169234484769e227374ae8c17dd3bfb15eeb4b Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Sat, 15 Feb 2025 14:07:27 +0000 Subject: [PATCH] Codefix: Remove const from int parameters. --- src/tree_cmd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tree_cmd.cpp b/src/tree_cmd.cpp index ea1e9a6eab..fbfddc40f4 100644 --- a/src/tree_cmd.cpp +++ b/src/tree_cmd.cpp @@ -192,7 +192,7 @@ struct BlobHarmonic { * @param harmonics Harmonics data for the polygon. * @param[out] shape Shape to fill with points. */ -static void CreateStarShapedPolygon(const int radius, std::span harmonics, std::span shape) +static void CreateStarShapedPolygon(int radius, std::span harmonics, std::span shape) { float theta = 0; float step = (M_PI * 2) / std::size(shape); @@ -251,7 +251,7 @@ static void CreateRandomStarShapedPolygon(int radius, std::span shape) * @param v3 Third vertex of triangle. * @returns true if the given coordinates lie within a triangle. */ -static bool IsPointInTriangle(const int x, const int y, const Point &v1, const Point &v2, const Point &v3) +static bool IsPointInTriangle(int x, int y, const Point &v1, const Point &v2, const Point &v3) { const int s = ((v1.x - v3.x) * (y - v3.y)) - ((v1.y - v3.y) * (x - v3.x)); const int t = ((v2.x - v1.x) * (y - v1.y)) - ((v2.y - v1.y) * (x - v1.x));