Some refactoring and fixes based on static source code analysis

This commit is contained in:
Lukas Matena 2021-04-16 14:44:36 +02:00
parent 807f380d3f
commit 96a6c8538f
10 changed files with 15 additions and 13 deletions

View file

@ -552,7 +552,7 @@ static CircleBed to_circle(const Point &center, const Points& points) {
std::vector<double> vertex_distances;
double avg_dist = 0;
for (auto pt : points)
for (const Point& pt : points)
{
double distance = distance_to(center, pt);
vertex_distances.push_back(distance);