diff --git a/rmw_fastrtps_shared_cpp/include/rmw_fastrtps_shared_cpp/custom_service_info.hpp b/rmw_fastrtps_shared_cpp/include/rmw_fastrtps_shared_cpp/custom_service_info.hpp index a461c9417..dd2b4cdd3 100644 --- a/rmw_fastrtps_shared_cpp/include/rmw_fastrtps_shared_cpp/custom_service_info.hpp +++ b/rmw_fastrtps_shared_cpp/include/rmw_fastrtps_shared_cpp/custom_service_info.hpp @@ -75,12 +75,7 @@ typedef struct CustomServiceInfo typedef struct CustomServiceRequest { eprosima::fastrtps::rtps::SampleIdentity sample_identity_; - eprosima::fastcdr::FastBuffer * buffer_; - - CustomServiceRequest() - : buffer_(nullptr) - { - } + eprosima::fastcdr::FastBuffer * buffer_{nullptr}; } CustomServiceRequest; class ServicePubListener : public eprosima::fastdds::dds::DataWriterListener