diff --git a/ApplicationLibCode/ModelVisualization/Intersections/RivExtrudedCurveIntersectionGeometryGenerator.cpp b/ApplicationLibCode/ModelVisualization/Intersections/RivExtrudedCurveIntersectionGeometryGenerator.cpp index d30e0b6d9c..1dc7597798 100644 --- a/ApplicationLibCode/ModelVisualization/Intersections/RivExtrudedCurveIntersectionGeometryGenerator.cpp +++ b/ApplicationLibCode/ModelVisualization/Intersections/RivExtrudedCurveIntersectionGeometryGenerator.cpp @@ -226,7 +226,7 @@ class MeshLinesAccumulator const cvf::Vec3d& p0, const cvf::Vec3d& p1 ) { -#define isFace( faceEnum ) ( 0 <= faceEnum && faceEnum <= 5 ) + auto isFace = []( int faceEnum ) { return 0 <= faceEnum && faceEnum <= 5; }; using FaceType = cvf::StructGridInterface::FaceType; if ( isFace( cellFaceForEachClippedTriangleEdge[triVxIdx] ) )