Skip to content

Commit 1830e20

Browse files
committed
Fixed warning
1 parent b77494d commit 1830e20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/state/vsgclip/vsgclip.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class IntersectionHandler : public vsg::Inherit<vsg::Visitor, IntersectionHandle
7474
if (intersector->intersections.empty()) return;
7575

7676
// sort the intersections front to back
77-
std::sort(intersector->intersections.begin(), intersector->intersections.end(), [](auto lhs, auto rhs) { return lhs->ratio < rhs->ratio; });
77+
std::sort(intersector->intersections.begin(), intersector->intersections.end(), [](auto& lhs, auto& rhs) { return lhs->ratio < rhs->ratio; });
7878

7979
auto& intersection = *intersector->intersections.front();
8080
world_clipSettings->at(0) = vsg::vec4(static_cast<float>(intersection.worldIntersection.x),

0 commit comments

Comments
 (0)