Skip to content

Commit 4cc756a

Browse files
committed
NOLINT const_cast
1 parent af9335a commit 4cc756a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tesseract_collision/hpp_fcl/src/hpp_fcl_utils.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,12 @@ CollisionGeometryPtr createShapePrimitive(const tesseract_geometry::ConvexMesh::
131131
static_cast<size_t>(triangles[(4 * i) + 3]));
132132
}
133133

134-
return CollisionGeometryPtr(
135-
new hpp::fcl::Convex<hpp::fcl::Triangle>(false,
136-
const_cast<Eigen::Matrix<double, 3, 1>*>(geom->getVertices()->data()),
137-
vertex_count,
138-
tri_indices.data(),
139-
triangle_count));
134+
return CollisionGeometryPtr(new hpp::fcl::Convex<hpp::fcl::Triangle>(
135+
false,
136+
const_cast<Eigen::Matrix<double, 3, 1>*>(geom->getVertices()->data()), // NOLINT
137+
vertex_count,
138+
tri_indices.data(),
139+
triangle_count));
140140
}
141141

142142
CONSOLE_BRIDGE_logError("The mesh is empty!");

0 commit comments

Comments
 (0)