Skip to content

Commit fd961bc

Browse files
authored
use constexpr for endpoint type name (#1055)
Signed-off-by: Soragna, Alberto <[email protected]>
1 parent fd8cfa8 commit fd961bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rclcpp/src/rclcpp/node_interfaces/node_graph.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ get_info_by_topic(
461461
return topic_info_list;
462462
}
463463

464-
static const char kPublisherEndpointTypeName[] = "publishers";
464+
static constexpr char kPublisherEndpointTypeName[] = "publishers";
465465
std::vector<rclcpp::TopicEndpointInfo>
466466
NodeGraph::get_publishers_info_by_topic(
467467
const std::string & topic_name,
@@ -474,7 +474,7 @@ NodeGraph::get_publishers_info_by_topic(
474474
rcl_get_publishers_info_by_topic);
475475
}
476476

477-
static const char kSubscriptionEndpointTypeName[] = "subscriptions";
477+
static constexpr char kSubscriptionEndpointTypeName[] = "subscriptions";
478478
std::vector<rclcpp::TopicEndpointInfo>
479479
NodeGraph::get_subscriptions_info_by_topic(
480480
const std::string & topic_name,

0 commit comments

Comments
 (0)