Skip to content

Commit

Permalink
use constexpr for endpoint type name
Browse files Browse the repository at this point in the history
Signed-off-by: Soragna, Alberto <alberto.soragna@gmail.com>
  • Loading branch information
alsora committed Apr 9, 2020
1 parent fd8cfa8 commit 000ee9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rclcpp/src/rclcpp/node_interfaces/node_graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ get_info_by_topic(
return topic_info_list;
}

static const char kPublisherEndpointTypeName[] = "publishers";
static constexp char kPublisherEndpointTypeName[] = "publishers";
std::vector<rclcpp::TopicEndpointInfo>
NodeGraph::get_publishers_info_by_topic(
const std::string & topic_name,
Expand All @@ -474,7 +474,7 @@ NodeGraph::get_publishers_info_by_topic(
rcl_get_publishers_info_by_topic);
}

static const char kSubscriptionEndpointTypeName[] = "subscriptions";
static constexp char kSubscriptionEndpointTypeName[] = "subscriptions";
std::vector<rclcpp::TopicEndpointInfo>
NodeGraph::get_subscriptions_info_by_topic(
const std::string & topic_name,
Expand Down

0 comments on commit 000ee9b

Please sign in to comment.