From 0ab0c9ba04905774ae63bd1989ec563321ded4e4 Mon Sep 17 00:00:00 2001 From: Roelof Oomen Date: Tue, 6 Feb 2024 19:12:21 +0100 Subject: [PATCH] NOLINT const_cast --- tesseract_collision/hpp_fcl/src/hpp_fcl_utils.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tesseract_collision/hpp_fcl/src/hpp_fcl_utils.cpp b/tesseract_collision/hpp_fcl/src/hpp_fcl_utils.cpp index 7f8a5d41336..1a53edbfc45 100644 --- a/tesseract_collision/hpp_fcl/src/hpp_fcl_utils.cpp +++ b/tesseract_collision/hpp_fcl/src/hpp_fcl_utils.cpp @@ -131,12 +131,12 @@ CollisionGeometryPtr createShapePrimitive(const tesseract_geometry::ConvexMesh:: static_cast(triangles[(4 * i) + 3])); } - return CollisionGeometryPtr( - new hpp::fcl::Convex(false, - const_cast*>(geom->getVertices()->data()), - vertex_count, - tri_indices.data(), - triangle_count)); + return CollisionGeometryPtr(new hpp::fcl::Convex( + false, + const_cast*>(geom->getVertices()->data()), // NOLINT + vertex_count, + tri_indices.data(), + triangle_count)); } CONSOLE_BRIDGE_logError("The mesh is empty!");