Skip to content

Commit

Permalink
Remove an unnecessary constructor. (#743)
Browse files Browse the repository at this point in the history
We can just use brace initialization here, and this
allows us to side-step an uncrustify issue with the constructor.

Signed-off-by: Chris Lalancette <[email protected]>
  • Loading branch information
clalancette authored Feb 27, 2024
1 parent e21254c commit 1301b8d
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1301b8d

Please sign in to comment.