Some refactoring and fixes based on static source code analysis
This commit is contained in:
parent
807f380d3f
commit
96a6c8538f
10 changed files with 15 additions and 13 deletions
|
@ -552,7 +552,7 @@ static CircleBed to_circle(const Point ¢er, 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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue