mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 08:25:03 -05:00
Refactor: use lambda instead of define.
This commit is contained in:
1 parent
c367fe5e7f
commit
7836181ad1
1 file changed
+1
-1
+1
-1
@@ -226,7 +226,7 @@ public:
|
||||
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] ) )
|
||||
|
||||
Reference in new issue
Block a user