Skip to content

Commit

Permalink
NOLINT const_cast
Browse files Browse the repository at this point in the history
  • Loading branch information
rjoomen committed Feb 17, 2024
1 parent 36a9c88 commit 11bf54c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tesseract_collision/hpp_fcl/src/hpp_fcl_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ CollisionGeometryPtr createShapePrimitive(const tesseract_geometry::ConvexMesh::
static_cast<size_t>(triangles[(4 * i) + 3]));
}

return CollisionGeometryPtr(
new hpp::fcl::Convex<hpp::fcl::Triangle>(false,
const_cast<Eigen::Matrix<double, 3, 1>*>(geom->getVertices()->data()),
vertex_count,
tri_indices.data(),
triangle_count));
return CollisionGeometryPtr(new hpp::fcl::Convex<hpp::fcl::Triangle>(
false,
const_cast<Eigen::Matrix<double, 3, 1>*>(geom->getVertices()->data()), // NOLINT
vertex_count,
tri_indices.data(),
triangle_count));
}

CONSOLE_BRIDGE_logError("The mesh is empty!");
Expand Down

0 comments on commit 11bf54c

Please sign in to comment.