Skip to content

Commit 3cb52a9

Browse files
author
Chen Lihui
committed
use using instead of typedef
Signed-off-by: Chen Lihui <[email protected]>
1 parent e5d1e03 commit 3cb52a9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

rclcpp/include/rclcpp/typesupport_helpers.hpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,25 +52,25 @@ struct typesupport_action_tag {};
5252
template<typename T>
5353
struct typesupport_traits
5454
{
55-
typedef T type_tag;
55+
using type_tag = T;
5656
};
5757

5858
template<>
5959
struct typesupport_traits<rosidl_message_type_support_t>
6060
{
61-
typedef typesupport_message_tag type_tag;
61+
using type_tag = typesupport_message_tag;
6262
};
6363

6464
template<>
6565
struct typesupport_traits<rosidl_service_type_support_t>
6666
{
67-
typedef typesupport_service_tag type_tag;
67+
using type_tag = typesupport_service_tag;
6868
};
6969

7070
template<>
7171
struct typesupport_traits<rosidl_action_type_support_t>
7272
{
73-
typedef typesupport_action_tag type_tag;
73+
using type_tag = typesupport_action_tag;
7474
};
7575

7676
using SymbolNameErrorFuncPair = std::pair<std::string, std::function<std::string()>>;
@@ -132,7 +132,6 @@ get_typesupport_handle(
132132
}
133133
}
134134

135-
136135
} // namespace rclcpp
137136

138137
#endif // RCLCPP__TYPESUPPORT_HELPERS_HPP_

0 commit comments

Comments
 (0)