Skip to content

Commit

Permalink
As per #855 issue, use initializer list
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivang Vijay committed Mar 4, 2024
1 parent 191a56b commit 68108f5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rmw_zenoh_cpp/src/detail/message_type_support.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@
#include "message_type_support.hpp"
#include "type_support_common.hpp"

MessageTypeSupport::MessageTypeSupport(const message_type_support_callbacks_t * members)
MessageTypeSupport::MessageTypeSupport(const message_type_support_callbacks_t * members) : name(_create_type_name(members))
{
assert(members);

std::string name = _create_type_name(members);
this->set_name(name.c_str());

set_members(members);
Expand Down

0 comments on commit 68108f5

Please sign in to comment.