Skip to content

Commit

Permalink
lighting: Implement review suggestion.
Browse files Browse the repository at this point in the history
  • Loading branch information
vlj committed Jan 1, 2024
1 parent 19a65b5 commit 7f34e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ivis_opengl/culling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ bool isBBoxInClipSpace(const IntersectionOfHalfSpace& intersectionOfHalfSpace, c
// If all points lies in the complement a half space, it can't be part of the intersection
auto CheckAllPointsInSpace = [&points](const HalfSpaceCheck& predicate)
{
return std::all_of(points.begin(), points.end(), [&predicate](auto v) { return !predicate(v); });
return std::all_of(points.begin(), points.end(), [&predicate](const auto& v) { return !predicate(v); });
};

for (const auto& predicate : intersectionOfHalfSpace)
Expand Down

0 comments on commit 7f34e71

Please sign in to comment.