From 71b27d1d70b585bec2ac57d8c8361708fe8035d4 Mon Sep 17 00:00:00 2001 From: Yamato Ando Date: Wed, 10 Jul 2024 17:34:16 +0900 Subject: [PATCH] fix [[nodiscard]] Signed-off-by: Yamato Ando --- .../pointcloud_map_loader/differential_map_loader_module.hpp | 2 +- .../src/pointcloud_map_loader/partial_map_loader_module.hpp | 2 +- .../src/pointcloud_map_loader/selected_map_loader_module.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/map/map_loader/src/pointcloud_map_loader/differential_map_loader_module.hpp b/map/map_loader/src/pointcloud_map_loader/differential_map_loader_module.hpp index bc81679524f6d..c3e3fdda28d0b 100644 --- a/map/map_loader/src/pointcloud_map_loader/differential_map_loader_module.hpp +++ b/map/map_loader/src/pointcloud_map_loader/differential_map_loader_module.hpp @@ -52,7 +52,7 @@ class DifferentialMapLoaderModule void differential_area_load( const autoware_map_msgs::msg::AreaInfo & area_info, const std::vector & cached_ids, const GetDifferentialPointCloudMap::Response::SharedPtr & response) const; - autoware_map_msgs::msg::PointCloudMapCellWithMetaData load_point_cloud_map_cell_with_metadata( + [[nodiscard]] autoware_map_msgs::msg::PointCloudMapCellWithMetaData load_point_cloud_map_cell_with_metadata( const std::string & path, const std::string & map_id) const; }; diff --git a/map/map_loader/src/pointcloud_map_loader/partial_map_loader_module.hpp b/map/map_loader/src/pointcloud_map_loader/partial_map_loader_module.hpp index 346ef953c16e5..27041837426f4 100644 --- a/map/map_loader/src/pointcloud_map_loader/partial_map_loader_module.hpp +++ b/map/map_loader/src/pointcloud_map_loader/partial_map_loader_module.hpp @@ -52,7 +52,7 @@ class PartialMapLoaderModule void partial_area_load( const autoware_map_msgs::msg::AreaInfo & area, const GetPartialPointCloudMap::Response::SharedPtr & response) const; - autoware_map_msgs::msg::PointCloudMapCellWithMetaData load_point_cloud_map_cell_with_metadata( + [[nodiscard]] autoware_map_msgs::msg::PointCloudMapCellWithMetaData load_point_cloud_map_cell_with_metadata( const std::string & path, const std::string & map_id) const; }; diff --git a/map/map_loader/src/pointcloud_map_loader/selected_map_loader_module.hpp b/map/map_loader/src/pointcloud_map_loader/selected_map_loader_module.hpp index 590167c428f02..55148ccf671fc 100644 --- a/map/map_loader/src/pointcloud_map_loader/selected_map_loader_module.hpp +++ b/map/map_loader/src/pointcloud_map_loader/selected_map_loader_module.hpp @@ -52,7 +52,7 @@ class SelectedMapLoaderModule [[nodiscard]] bool on_service_get_selected_point_cloud_map( GetSelectedPointCloudMap::Request::SharedPtr req, GetSelectedPointCloudMap::Response::SharedPtr res) const; - autoware_map_msgs::msg::PointCloudMapCellWithMetaData load_point_cloud_map_cell_with_metadata( + [[nodiscard]] autoware_map_msgs::msg::PointCloudMapCellWithMetaData load_point_cloud_map_cell_with_metadata( const std::string & path, const std::string & map_id) const; };