Skip to content

Commit

Permalink
More clang-tidy fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaander committed Feb 4, 2025
1 parent 38dcf3f commit 57afef6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions freud/environment/Registration.h
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class RegisterBruteForce
q.row(0) = points.row(int(comb[0]));
q.row(1) = points.row(int(comb[1]));
}
else if (N == int(1))
else if (N == 1)
{
q.row(0) = points.row(int(comb[0]));
}
Expand Down Expand Up @@ -362,7 +362,7 @@ class RegisterBruteForce
for (int r = 0; r < points.rows(); r++)
{
// get the rotated point
vec3<float> pfit = make_point(points.row(r));
const vec3<float> pfit = make_point(points.row(r));
// compute squared distances to all unused reference points
std::vector<std::pair<unsigned int, float>> ref_distances;
for (auto ref_index : unused_indices)
Expand Down Expand Up @@ -442,6 +442,7 @@ class RegisterBruteForce
}
int random_int(int a, int b)
{
// NOLINTNEXTLINE(misc-const-correctness) - const causes a compile error
std::uniform_int_distribution<int> distribution(a, b);
return distribution(m_generator);
}
Expand Down

0 comments on commit 57afef6

Please sign in to comment.